]>
Commit | Line | Data |
---|---|---|
1ea978e3 JJ |
1 | 2022-05-06 Release Manager |
2 | ||
3 | * GCC 12.1.0 released. | |
4 | ||
0faf3a1e GA |
5 | 2022-04-29 Iain Sandoe <iain@sandoe.co.uk> |
6 | ||
7 | Backported from master: | |
8 | 2022-04-29 Iain Sandoe <iain@sandoe.co.uk> | |
9 | ||
10 | PR c++/105426 | |
11 | * coroutines.cc (register_local_var_uses): Allow promotion of unnamed | |
12 | temporaries to coroutine frame copies. | |
13 | ||
ab73f5b0 GA |
14 | 2022-04-28 Patrick Palka <ppalka@redhat.com> |
15 | ||
16 | Backported from master: | |
17 | 2022-04-28 Patrick Palka <ppalka@redhat.com> | |
18 | ||
19 | PR c++/105425 | |
20 | * pt.cc (unify) <case TEMPLATE_PARM_INDEX>: Treat | |
21 | DEPENDENT_OPERATOR_TYPE like an empty type. | |
22 | ||
23 | 2022-04-28 Iain Sandoe <iain@sandoe.co.uk> | |
24 | ||
25 | PR c++/104051 | |
26 | * coroutines.cc (coro_diagnose_throwing_final_aw_expr): Handle | |
27 | non-target expression inputs. | |
28 | ||
29 | 2022-04-28 Iain Sandoe <iain@sandoe.co.uk> | |
30 | ||
31 | PR c++/105301 | |
32 | * coroutines.cc (coro_promise_type_found_p): Account for possible | |
33 | mutliple overloads of the promise return_value() method. | |
34 | ||
35 | 2022-04-28 Iain Sandoe <iain@sandoe.co.uk> | |
36 | ||
37 | PR c++/105287 | |
38 | * coroutines.cc (maybe_promote_temps): Ensure generated temporaries | |
39 | are added to the bind expr. | |
40 | (add_var_to_bind): Fix local var naming to use portable punctuation. | |
41 | (register_local_var_uses): Do not add synthetic names to unnamed | |
42 | temporaries. | |
43 | ||
44 | 2022-04-28 Nathan Sidwell <nathan@acm.org> | |
45 | Iain Sandoe <iain@sandoe.co.uk> | |
46 | ||
47 | PR c++/103868 | |
48 | * coroutines.cc (finish_co_await_expr): Do not process non-dependent | |
49 | coroutine expressions at template definition time. | |
50 | (finish_co_yield_expr): Likewise. | |
51 | (finish_co_return_stmt): Likewise. | |
52 | ||
53 | 2022-04-28 Marek Polacek <polacek@redhat.com> | |
54 | ||
55 | PR c++/90107 | |
56 | * parser.cc (cp_parser_class_specifier_1): Accept :: after a class | |
57 | definition. | |
58 | ||
ba949a6a GA |
59 | 2022-04-27 Jason Merrill <jason@redhat.com> |
60 | ||
61 | * tree.cc (strip_typedefs): Add default argument comments. | |
62 | ||
63 | 2022-04-27 Marek Polacek <polacek@redhat.com> | |
64 | ||
65 | PR c++/105398 | |
66 | * pt.cc (uses_template_parms): Return false for any NAMESPACE_DECL. | |
67 | ||
01ad093b GA |
68 | 2022-04-26 Jason Merrill <jason@redhat.com> |
69 | ||
70 | PR c++/102629 | |
71 | * pt.cc (gen_elem_of_pack_expansion_instantiation): Clear | |
72 | TEMPLATE_TYPE_PARAMETER_PACK on auto. | |
73 | ||
74 | 2022-04-26 Patrick Palka <ppalka@redhat.com> | |
75 | ||
76 | PR c++/105386 | |
77 | * semantics.cc (finish_decltype_type): Pass tf_decltype to | |
78 | instantiate_non_dependent_expr_sfinae. | |
79 | ||
80 | 2022-04-26 Jason Merrill <jason@redhat.com> | |
81 | ||
82 | PR c++/104624 | |
83 | * pt.cc (check_for_bare_parameter_packs): Check for lambda | |
84 | function parameter pack. | |
85 | ||
86 | 2022-04-26 Patrick Palka <ppalka@redhat.com> | |
87 | ||
88 | PR c++/105289 | |
89 | PR c++/86193 | |
90 | * pt.cc (process_partial_specialization): Downgrade "partial | |
91 | specialization isn't more specialized" diagnostic from permerror | |
92 | to an on-by-default pedwarn. | |
93 | (unify) <case TEMPLATE_PARM_INDEX>: When substituting into the | |
94 | NTTP type a second time, use the original type not the | |
95 | substituted type. | |
96 | ||
98de0da6 GA |
97 | 2022-04-25 Marek Polacek <polacek@redhat.com> |
98 | ||
99 | PR c++/105353 | |
100 | * typeck.cc (build_x_shufflevector): Use | |
101 | instantiation_dependent_expression_p except for the first two | |
102 | arguments. | |
103 | ||
c1a9cf67 GA |
104 | 2022-04-21 Marek Polacek <polacek@redhat.com> |
105 | ||
106 | * constexpr.cc (cxx_eval_logical_expression): Remove unused | |
107 | parameter. | |
108 | (cxx_eval_constant_expression) <case TRUTH_ANDIF_EXPR>, | |
109 | <case TRUTH_OR_EXPR>: Adjust calls to cxx_eval_logical_expression. | |
110 | ||
111 | 2022-04-21 Marek Polacek <polacek@redhat.com> | |
112 | ||
113 | PR c++/105321 | |
114 | * constexpr.cc (cxx_eval_logical_expression): Always pass false for lval | |
115 | to cxx_eval_constant_expression. | |
116 | ||
29a25a60 GA |
117 | 2022-04-20 Ed Catmur <ed@catmur.uk> |
118 | ||
119 | PR c++/104996 | |
120 | * call.cc (compare_ics): When comparing list-initialization | |
121 | sequences, do not return early. | |
122 | ||
d1d57187 GA |
123 | 2022-04-19 Jakub Jelinek <jakub@redhat.com> |
124 | ||
125 | PR c++/105256 | |
126 | * typeck2.cc (process_init_constructor_array, | |
127 | process_init_constructor_record, process_init_constructor_union): Move | |
128 | CONSTRUCTOR_PLACEHOLDER_BOUNDARY flag from CONSTRUCTOR elements to the | |
129 | containing CONSTRUCTOR. | |
130 | ||
587953f0 GA |
131 | 2022-04-15 Marek Polacek <polacek@redhat.com> |
132 | ||
133 | PR c++/105268 | |
134 | * parser.cc (cp_parser_placeholder_type_specifier): Return | |
135 | error_mark_node when trying to build up a constrained parameter in | |
136 | a default argument. | |
137 | ||
138 | 2022-04-15 Jason Merrill <jason@redhat.com> | |
139 | ||
140 | PR c++/102804 | |
141 | * decl.cc (grokdeclarator): Drop typedef used with 'unsigned'. | |
142 | ||
143 | 2022-04-15 Jason Merrill <jason@redhat.com> | |
144 | ||
145 | PR c++/102987 | |
146 | * error.cc (dump_expr): Handle USING_DECL. | |
147 | [VIEW_CONVERT_EXPR]: Just look through location wrapper. | |
148 | ||
031bd52e GA |
149 | 2022-04-14 Jason Merrill <jason@redhat.com> |
150 | ||
151 | PR c++/104646 | |
152 | * constexpr.cc (maybe_save_constexpr_fundef): Don't do extra | |
153 | checks for defaulted ctors. | |
154 | ||
155 | 2022-04-14 Jason Merrill <jason@redhat.com> | |
156 | ||
157 | PR c++/82980 | |
158 | * lambda.cc (type_deducible_expression_p): New. | |
159 | (lambda_capture_field_type): Check it. | |
160 | ||
161 | 2022-04-14 Jason Merrill <jason@redhat.com> | |
162 | ||
163 | PR c++/65211 | |
164 | * pt.cc (tsubst_decl) [TYPE_DECL]: Copy TYPE_ALIGN. | |
165 | ||
166 | 2022-04-14 Jason Merrill <jason@redhat.com> | |
167 | ||
168 | PR c++/97219 | |
169 | * name-lookup.cc (dependent_local_decl_p): New. | |
170 | * cp-tree.h (dependent_local_decl_p): Declare. | |
171 | * semantics.cc (finish_call_expr): Use it. | |
172 | * pt.cc (tsubst_arg_types): Also substitute default args | |
173 | for local externs. | |
174 | ||
175 | 2022-04-14 Jason Merrill <jason@redhat.com> | |
176 | ||
177 | PR c++/101698 | |
178 | * pt.cc (tsubst_baselink): Also check dependent optype. | |
179 | ||
180 | 2022-04-14 Jason Merrill <jason@redhat.com> | |
181 | ||
182 | PR c++/101442 | |
183 | * decl.cc (cp_finish_decl): Don't pass decl to push_cleanup. | |
184 | * init.cc (perform_member_init): Likewise. | |
185 | * semantics.cc (push_cleanup): Adjust comment. | |
186 | ||
247bbed1 GA |
187 | 2022-04-13 Jason Merrill <jason@redhat.com> |
188 | ||
189 | PR c++/105245 | |
190 | PR c++/100111 | |
191 | * constexpr.cc (cxx_eval_store_expression): Build a CONSTRUCTOR | |
192 | as needed in empty base handling. | |
193 | ||
194 | 2022-04-13 Jakub Jelinek <jakub@redhat.com> | |
195 | ||
196 | PR c++/105233 | |
197 | * decl2.cc (cp_check_const_attributes): For aligned attribute | |
198 | pass manifestly_const_eval=true to fold_non_dependent_expr. | |
199 | ||
200 | 2022-04-13 Marek Polacek <polacek@redhat.com> | |
201 | ||
202 | PR c++/97296 | |
203 | * call.cc (direct_reference_binding): strip_top_quals when creating | |
204 | a ck_qual. | |
205 | ||
504dae1d GA |
206 | 2022-04-12 Jason Merrill <jason@redhat.com> |
207 | ||
208 | PR c++/104669 | |
209 | * decl.cc (decls_match): Compare versions even if not recording. | |
210 | (duplicate_decls): Propagate attributes to alias. | |
211 | * decl2.cc (find_last_decl): Give up if versioned. | |
212 | ||
213 | 2022-04-12 Jason Merrill <jason@redhat.com> | |
214 | ||
215 | PR c++/102071 | |
216 | * init.cc (build_new_1): Check array_p for alignment. | |
217 | ||
218 | 2022-04-12 Patrick Palka <ppalka@redhat.com> | |
219 | ||
220 | PR c++/103105 | |
221 | * pt.cc (build_extra_args): Call preserve_args. | |
222 | ||
223 | 2022-04-12 Jason Merrill <jason@redhat.com> | |
224 | ||
225 | PR c++/104142 | |
226 | * decl.cc (check_initializer): Check TREE_SIDE_EFFECTS. | |
227 | ||
228 | 2022-04-12 Jason Merrill <jason@redhat.com> | |
229 | ||
230 | PR c++/105223 | |
231 | PR c++/92918 | |
232 | * class.cc (finish_struct): Always using op=. | |
233 | ||
da066c42 GA |
234 | 2022-04-11 Jason Merrill <jason@redhat.com> |
235 | ||
236 | PR c++/98249 | |
237 | * call.cc (build_operator_new_call): Just look in ::. | |
238 | ||
239 | 2022-04-11 Alexandre Oliva <oliva@adacore.com> | |
240 | ||
241 | * constexpr.cc (cxx_eval_call_expression): Disregard dtor | |
242 | result. | |
243 | ||
244 | 2022-04-11 Alexandre Oliva <oliva@adacore.com> | |
245 | ||
246 | * semantics.cc (set_cleanup_locs): Propagate locus to call | |
247 | wrapped in cast-to-void. | |
248 | ||
249 | 2022-04-11 Jason Merrill <jason@redhat.com> | |
250 | ||
251 | PR c++/100370 | |
252 | * init.cc (warn_placement_new_too_small): Check deref. | |
253 | ||
71cac7de GA |
254 | 2022-04-09 Jason Merrill <jason@redhat.com> |
255 | ||
256 | PR c++/105191 | |
257 | PR c++/92385 | |
258 | * tree.cc (build_vec_init_elt): Do {}-init for aggregates. | |
259 | * constexpr.cc (cxx_eval_vec_init): Only treat {} as value-init | |
260 | for non-aggregate types. | |
261 | (build_vec_init_expr): Also check constancy of explicit | |
262 | initializer elements. | |
263 | ||
264 | 2022-04-09 Jason Merrill <jason@redhat.com> | |
265 | ||
266 | PR c++/91618 | |
267 | PR c++/96604 | |
268 | * name-lookup.cc (set_decl_namespace): Set | |
269 | DECL_IMPLICIT_INSTANTIATION if no non-template match. | |
270 | * pt.cc (check_explicit_specialization): Check it. | |
271 | * decl2.cc (check_classfn): Call it. | |
272 | ||
df00d103 GA |
273 | 2022-04-07 Patrick Palka <ppalka@redhat.com> |
274 | ||
275 | PR c++/99479 | |
276 | * name-lookup.cc (name_lookup::using_queue): Change to an | |
277 | auto_vec (with 16 elements of internal storage). | |
278 | (name_lookup::queue_namespace): Change return type to void, | |
279 | take queue parameter by reference and adjust function body | |
280 | accordingly. | |
281 | (name_lookup::do_queue_usings): Inline into ... | |
282 | (name_lookup::queue_usings): ... here. As in queue_namespace. | |
283 | (name_lookup::search_unqualified): Don't make queue static, | |
284 | remove length variable, and adjust function body accordingly. | |
285 | ||
286 | 2022-04-07 Jakub Jelinek <jakub@redhat.com> | |
287 | ||
288 | PR tree-optimization/102586 | |
289 | * cp-objcp-common.h (cp_classtype_as_base): Declare. | |
290 | (LANG_HOOKS_CLASSTYPE_AS_BASE): Redefine. | |
291 | * cp-objcp-common.cc (cp_classtype_as_base): New function. | |
292 | ||
293 | 2022-04-07 Jason Merrill <jason@redhat.com> | |
294 | ||
295 | PR c++/101051 | |
296 | * decl.cc (grokdeclarator): Reject conversion with trailing return | |
297 | sooner. | |
298 | ||
299 | 2022-04-07 Jason Merrill <jason@redhat.com> | |
300 | ||
301 | PR c++/101717 | |
302 | * lambda.cc (lambda_expr_this_capture): Check all enclosing | |
303 | lambdas for completeness. | |
304 | ||
305 | 2022-04-07 Jason Merrill <jason@redhat.com> | |
306 | ||
307 | PR c++/105187 | |
308 | * typeck2.cc (store_init_value): Allow TREE_HAS_CONSTRUCTOR for | |
309 | vectors. | |
310 | ||
80eb8ec6 GA |
311 | 2022-04-06 Jakub Jelinek <jakub@redhat.com> |
312 | ||
313 | PR c++/104668 | |
314 | * decl2.cc (splice_template_attributes): Return NULL if *p is | |
315 | error_mark_node. | |
316 | (cplus_decl_attributes): Return early if attributes is | |
317 | error_mark_node. Don't check that later. | |
318 | ||
319 | 2022-04-06 Patrick Palka <ppalka@redhat.com> | |
320 | ||
321 | PR c++/105143 | |
322 | * pt.cc (do_class_deduction): Check complain before attempting | |
323 | to issue a -Wctad-maybe-unsupported warning. | |
324 | ||
325 | 2022-04-06 Jason Merrill <jason@redhat.com> | |
326 | ||
327 | PR c++/104702 | |
328 | * init.cc (build_vec_init): Use a reference for the result. | |
329 | ||
330 | 2022-04-06 Jason Merrill <jason@redhat.com> | |
331 | ||
332 | PR c++/100608 | |
333 | * name-lookup.cc (check_local_shadow): Use -Wshadow=local | |
334 | if exactly one of 'old' and 'decl' is a type. | |
335 | ||
9d84ed68 GA |
336 | 2022-04-05 Jason Merrill <jason@redhat.com> |
337 | ||
338 | PR c++/103852 | |
339 | DR 1286 | |
340 | * pt.cc (do_class_deduction): Pedwarn for renaming alias in C++17. | |
341 | ||
342 | 2022-04-05 Jason Merrill <jason@redhat.com> | |
343 | ||
344 | PR c++/101677 | |
345 | * name-lookup.h (struct cp_binding_level): Add requires_expression | |
346 | bit-field. | |
347 | * parser.cc (cp_parser_requires_expression): Set it. | |
348 | (synthesize_implicit_template_parm): Check it. | |
349 | ||
5e09bb1b GA |
350 | 2022-04-04 Jason Merrill <jason@redhat.com> |
351 | ||
352 | PR c++/101894 | |
353 | * decl.cc (duplicate_decls): Copy DECL_FRIEND_CONTEXT. | |
354 | ||
355 | 2022-04-04 Jason Merrill <jason@redhat.com> | |
356 | ||
357 | PR c++/103852 | |
358 | DR 1286 | |
359 | * pt.cc (get_underlying_template): Compare default template args. | |
360 | ||
8af4270d GA |
361 | 2022-04-03 Benno Evers <benno.evers@tenzir.com> |
362 | Iain Sandoe <iain@sandoe.co.uk> | |
363 | ||
364 | PR c++/103328 | |
365 | * coroutines.cc (morph_fn_to_coro): Reset | |
366 | current_binding_level->blocks. | |
367 | ||
447ac3c5 ML |
368 | 2022-04-01 Jason Merrill <jason@redhat.com> |
369 | ||
370 | Revert: | |
371 | 2022-03-31 Jason Merrill <jason@redhat.com> | |
372 | ||
373 | PR c++/96645 | |
374 | * parser.cc (cp_parser_early_parsing_nsdmi): New. | |
375 | (cp_parser_member_declaration): Call it. | |
376 | ||
377 | 2022-04-01 Jason Merrill <jason@redhat.com> | |
378 | ||
379 | Revert: | |
380 | 2022-03-24 Jason Merrill <jason@redhat.com> | |
381 | ||
382 | PR c++/96645 | |
383 | * cp-tree.h (type_has_default_ctor_to_be_synthesized): Declare. | |
384 | * class.cc (type_has_default_ctor_to_be_synthesized): New. | |
385 | (type_has_non_user_provided_default_constructor_1): Support it. | |
386 | (type_has_non_user_provided_default_constructor): Now a wrapper. | |
387 | * method.cc (complain_about_unparsed_dmi): New. | |
388 | (constructible_expr): Call it. | |
389 | ||
8af4270d GA |
390 | 2022-04-01 Patrick Palka <ppalka@redhat.com> |
391 | ||
392 | PR c++/105110 | |
393 | * pt.cc (unify) <case TEMPLATE_PARM_INDEX>: Drop cv-quals from | |
394 | the argument type of an NTTP before deducing from it. | |
395 | ||
57ad4462 GA |
396 | 2022-03-31 Jason Merrill <jason@redhat.com> |
397 | ||
398 | PR c++/96645 | |
399 | * parser.cc (cp_parser_early_parsing_nsdmi): New. | |
400 | (cp_parser_member_declaration): Call it. | |
401 | ||
150ab50f GA |
402 | 2022-03-30 Patrick Palka <ppalka@redhat.com> |
403 | ||
404 | PR c++/100474 | |
405 | * constraint.cc (diagnose_trait_expr): Handle all remaining | |
406 | traits appropriately. Remove default case. | |
407 | ||
408 | 2022-03-30 Marek Polacek <polacek@redhat.com> | |
409 | ||
410 | PR c++/93280 | |
411 | PR c++/104583 | |
412 | * init.cc (get_nsdmi): Set TARGET_EXPR_DIRECT_INIT_P to in_ctor. | |
413 | ||
414 | 2022-03-30 Jakub Jelinek <jakub@redhat.com> | |
415 | ||
416 | PR c++/105092 | |
417 | * pt.cc (tsubst_omp_clause_decl): When handling iterators, set | |
418 | DECL_CONTEXT of the iterator var to current_function_decl and | |
419 | call pushdecl. | |
420 | ||
421 | 2022-03-30 Jakub Jelinek <jakub@redhat.com> | |
422 | ||
423 | PR c++/105061 | |
424 | * parser.cc (cp_parser_template_introduction): If member_p, temporarily | |
425 | clear parser->colon_corrects_to_scope_p around tentative parsing of | |
426 | nested name specifier. | |
427 | ||
aab0127d GA |
428 | 2022-03-28 Jason Merrill <jason@redhat.com> |
429 | ||
430 | * pt.cc (determine_specialization): Add comment. | |
431 | ||
432 | 2022-03-28 Patrick Palka <ppalka@redhat.com> | |
433 | ||
434 | PR c++/105067 | |
435 | * pt.cc (finish_concept_definition): Check that a concept is | |
436 | declared with exactly one template parameter list. | |
437 | ||
438 | 2022-03-28 Patrick Palka <ppalka@redhat.com> | |
439 | ||
440 | PR c++/105064 | |
441 | * constraint.cc (maybe_substitute_reqs_for): Don't assume | |
442 | DECL_TEMPLATE_INFO is available. | |
443 | ||
444 | 2022-03-28 Jason Merrill <jason@redhat.com> | |
445 | ||
446 | PR c++/105003 | |
447 | PR c++/104008 | |
448 | PR c++/102869 | |
449 | * pt.cc (complex_alias_template_r): walk_tree callback, replacing | |
450 | uses_all_template_parms_r, complex_pack_expansion_r. | |
451 | (complex_alias_template_p): Adjust. | |
452 | * tree.cc (strip_typedefs): Revert r12-7710 change. | |
453 | ||
454 | 2022-03-28 Jason Merrill <jason@redhat.com> | |
455 | ||
456 | PR c++/102071 | |
457 | * init.cc (build_new_1): Include cookie in alignment. Omit | |
458 | constexpr wrapper from alloc_call. | |
459 | ||
460 | 2022-03-28 Jason Merrill <jason@redhat.com> | |
461 | ||
462 | PR c++/103291 | |
463 | * name-lookup.cc (push_local_extern_decl_alias): Call | |
464 | determine_visibility. | |
465 | ||
466 | 2022-03-28 Jason Merrill <jason@redhat.com> | |
467 | ||
468 | PR c++/102123 | |
469 | * pt.cc (tsubst_copy): Use make_unbound_class_template for rewriting | |
470 | a type template reference. | |
471 | ||
472 | 2022-03-28 Jason Merrill <jason@redhat.com> | |
473 | ||
474 | PR c++/103968 | |
475 | * pt.cc (value_dependent_expression_p): Check | |
476 | has_value_dependent_address for conversion to reference. | |
477 | ||
478 | 2022-03-28 Jason Merrill <jason@redhat.com> | |
479 | ||
480 | PR c++/103943 | |
481 | * pt.cc (tsubst_qualified_id): Handle getting SCOPE_REF from | |
482 | tsubst_baselink. | |
483 | (instantiation_dependent_scope_ref_p): Check dependent_scope_p. | |
484 | ||
485 | 2022-03-28 Jason Merrill <jason@redhat.com> | |
486 | ||
487 | PR c++/102045 | |
488 | * call.cc (make_base_init_ok): Call make_used. | |
489 | ||
490 | 2022-03-28 Jason Merrill <jason@redhat.com> | |
491 | ||
492 | PR c++/104847 | |
493 | * mangle.cc (write_expression): Don't write a union designator when | |
494 | undigested. | |
495 | ||
496 | 2022-03-28 Jason Merrill <jason@redhat.com> | |
497 | ||
498 | PR c++/99445 | |
499 | PR c++/103769 | |
500 | * tree.cc (strip_typedefs): Use build_distinct_type_copy. | |
501 | ||
d2906412 GA |
502 | 2022-03-26 Patrick Palka <ppalka@redhat.com> |
503 | ||
504 | PR c++/105050 | |
505 | * constexpr.cc (potential_constant_expression_1) <case IF_STMT>: | |
506 | Clarify error message when a if-stmt is non-constant because its | |
507 | branches are non-constant. | |
508 | ||
509 | 2022-03-26 Patrick Palka <ppalka@redhat.com> | |
510 | ||
511 | PR c++/103455 | |
512 | * call.cc (add_builtin_candidate) <case MEMBER_REF>: Test | |
513 | CLASS_TYPE_P instead of MAYBE_CLASS_TYPE_P. | |
514 | ||
31e989a2 GA |
515 | 2022-03-26 Jakub Jelinek <jakub@redhat.com> |
516 | ||
517 | * parser.cc (cp_parser_postfix_expression) | |
518 | <case RID_BILTIN_CONVERTVECTOR, case RID_BUILTIN_BIT_CAST>: Don't | |
519 | return cp_build_{vec,convert,bit_cast} result right away, instead | |
520 | set postfix_expression to it and break. | |
521 | ||
522 | 2022-03-25 Marek Polacek <polacek@redhat.com> | |
523 | ||
524 | PR c++/104944 | |
525 | * typeck.cc (cxx_sizeof_or_alignof_type): Diagnose alignof(void). | |
526 | (cxx_alignas_expr): Call cxx_sizeof_or_alignof_type with | |
527 | complain == true. | |
528 | ||
6fc4a993 GA |
529 | 2022-03-24 Marek Polacek <polacek@redhat.com> |
530 | ||
531 | PR c++/104284 | |
532 | * decl.cc (check_initializer): Don't call build_aggr_init in | |
533 | a template. | |
534 | ||
535 | 2022-03-24 Jason Merrill <jason@redhat.com> | |
536 | ||
537 | PR c++/96645 | |
538 | * cp-tree.h (type_has_default_ctor_to_be_synthesized): Declare. | |
539 | * class.cc (type_has_default_ctor_to_be_synthesized): New. | |
540 | (type_has_non_user_provided_default_constructor_1): Support it. | |
541 | (type_has_non_user_provided_default_constructor): Now a wrapper. | |
542 | * method.cc (complain_about_unparsed_dmi): New. | |
543 | (constructible_expr): Call it. | |
544 | ||
545 | 2022-03-24 Marek Polacek <polacek@redhat.com> | |
546 | ||
547 | PR c++/102990 | |
548 | * typeck2.cc (massage_init_elt): Avoid folding CONSTRUCTORs. | |
549 | ||
550 | 2022-03-24 Patrick Palka <ppalka@redhat.com> | |
551 | ||
552 | PR c++/104620 | |
553 | * call.cc (build_over_call): Use cxx_constant_value_sfinae | |
554 | instead of cxx_constant_value to evaluate a consteval call. | |
555 | * constexpr.cc (cxx_constant_value_sfinae): Add decl parameter | |
556 | and pass it to cxx_eval_outermost_constant_expr. | |
557 | * cp-tree.h (cxx_constant_value_sfinae): Add decl parameter. | |
558 | * pt.cc (fold_targs_r): Pass NULL_TREE as decl parameter to | |
559 | cxx_constant_value_sfinae. | |
560 | ||
561 | 2022-03-24 Jakub Jelinek <jakub@redhat.com> | |
562 | ||
563 | PR c++/104994 | |
564 | * constexpr.cc (cxx_eval_constant_expression): Don't diagnose passing | |
565 | through extern thread_local declarations. Change wording from | |
566 | declaration to definition. | |
567 | (potential_constant_expression_1): Don't diagnose extern thread_local | |
568 | declarations. Change wording from declared to defined. | |
569 | * decl.cc (start_decl): Likewise. | |
570 | ||
d1ca63a1 GA |
571 | 2022-03-23 Jason Merrill <jason@redhat.com> |
572 | ||
573 | PR c++/103337 | |
574 | * decl.cc (reshape_single_init): New. | |
575 | (reshape_init_class): Use it. | |
576 | ||
577 | 2022-03-23 Jason Merrill <jason@redhat.com> | |
578 | ||
579 | PR c++/105006 | |
580 | * name-lookup.cc (lookup_using_decl): Check that scope is | |
581 | a dependent type before looking for dependent using. | |
582 | ||
583 | 2022-03-23 Jason Merrill <jason@redhat.com> | |
584 | ||
585 | PR c++/105006 | |
586 | * name-lookup.cc (lookup_using_decl): Set DECL_DEPENDENT_P if lookup | |
587 | finds a dependent using. | |
588 | ||
d156bb87 GA |
589 | 2022-03-21 Jason Merrill <jason@redhat.com> |
590 | ||
591 | PR c++/58646 | |
592 | * init.cc (build_vec_init): Check for vla element type. | |
593 | ||
594 | 2022-03-21 Jason Merrill <jason@redhat.com> | |
595 | ||
596 | PR c++/103337 | |
597 | PR c++/102740 | |
598 | PR c++/103299 | |
599 | PR c++/102538 | |
600 | * decl.cc (reshape_init_class): Avoid looking for designator | |
601 | after we found it. | |
602 | (reshape_init_r): Keep looking for designator. | |
603 | ||
604 | 2022-03-21 Jason Merrill <jason@redhat.com> | |
605 | ||
606 | PR c++/101767 | |
607 | * decl.cc (reshape_init_class): Back out of anon struct | |
608 | if a designator doesn't match. | |
609 | ||
8ca61ad1 GA |
610 | 2022-03-18 Jason Merrill <jason@redhat.com> |
611 | ||
612 | PR c++/92918 | |
613 | PR c++/104476 | |
614 | * class.cc (add_method): Avoid adding the same used function twice. | |
615 | (handle_using_decl): Don't add_method. | |
616 | (finish_struct): Don't using op= if we have one already. | |
617 | (maybe_push_used_methods): New. | |
618 | * semantics.cc (finish_member_declaration): Call it. | |
619 | * name-lookup.cc (diagnose_name_conflict): No longer static. | |
620 | (push_class_level_binding): Revert 92918 patch, limit | |
621 | to dependent using. | |
622 | * cp-tree.h: Adjust. | |
623 | ||
624 | 2022-03-18 Jakub Jelinek <jakub@redhat.com> | |
625 | ||
626 | PR c++/104568 | |
627 | * init.cc (build_new_constexpr_heap_type): Remove FULL_SIZE | |
628 | argument and its handling, instead add ITYPE2 argument. Only | |
629 | support COOKIE_SIZE != NULL. | |
630 | (build_new_1): If size is 0, change it to 0 * outer_nelts if | |
631 | outer_nelts is non-NULL. Pass type rather than elt_type to | |
632 | maybe_wrap_new_for_constexpr. | |
633 | * constexpr.cc (build_new_constexpr_heap_type): New function. | |
634 | (cxx_eval_constant_expression) <case CONVERT_EXPR>: | |
635 | If elt_size is zero sized type, try to recover outer_nelts from | |
636 | the size argument to operator new/new[] and pass that as | |
637 | arg_size to build_new_constexpr_heap_type. Pass ctx, | |
638 | non_constant_p and overflow_p to that call too. | |
639 | ||
640 | 2022-03-18 Marek Polacek <polacek@redhat.com> | |
641 | ||
642 | PR c++/104008 | |
643 | * tree.cc (strip_typedefs): Don't strip an alias template when | |
644 | doing so would result in losing a parameter pack. | |
645 | ||
9fc8f278 GA |
646 | 2022-03-16 Patrick Palka <ppalka@redhat.com> |
647 | ||
648 | * search.cc (lookup_member): Simplify by handling all values | |
649 | of protect together in the ambiguous case. Don't modify protect. | |
650 | ||
651 | 2022-03-16 Patrick Palka <ppalka@redhat.com> | |
652 | ||
653 | PR c++/96780 | |
654 | * cp-gimplify.cc (cp_fold) <case CALL_EXPR>: Fold calls to | |
655 | std::move/forward and other cast-like functions into simple | |
656 | casts. | |
657 | ||
14d2ac82 GA |
658 | 2022-03-15 Patrick Palka <ppalka@redhat.com> |
659 | ||
660 | PR c++/103177 | |
661 | * search.cc (lookup_field_info::errstr): Remove this data | |
662 | member. | |
663 | (lookup_field_r): Don't set errstr. | |
664 | (lookup_member): Check ambiguity before checking access. | |
665 | Simplify accordingly after errstr removal. Exit early upon | |
666 | error or empty result. | |
667 | ||
668 | 2022-03-15 Jakub Jelinek <jakub@redhat.com> | |
669 | ||
670 | PR c++/104623 | |
671 | * parser.cc (cp_parser_skip_to_pragma_eol): Don't purge any tokens. | |
672 | ||
510613e7 GA |
673 | 2022-03-14 Jakub Jelinek <jakub@redhat.com> |
674 | ||
675 | PR tree-optimization/102586 | |
676 | * call.cc (build_cxx_call): Diagnose __builtin_clear_padding where | |
677 | first argument's type is pointer to non-trivially-copyable type unless | |
678 | it is address of a variable or parameter. | |
679 | ||
57eeedda GA |
680 | 2022-03-12 Patrick Palka <ppalka@redhat.com> |
681 | ||
682 | PR c++/104641 | |
683 | * cp-tree.h (tsubst_flags::tf_tst_ok): New flag. | |
684 | * decl.cc (make_typename_type): Allow a typename-specifier to | |
685 | resolve to a template when tf_tst_ok, in which case return | |
686 | a CTAD placeholder for the template. | |
687 | * pt.cc (tsubst_decl) <case VAR_DECL>: Set tf_tst_ok when | |
688 | substituting the type. | |
689 | (tsubst): Clear tf_tst_ok and remember if it was set. | |
690 | <case TYPENAME_TYPE>: Pass tf_tst_ok to make_typename_type | |
691 | appropriately. | |
692 | (tsubst_copy) <case CAST_EXPR>: Set tf_tst_ok when substituting | |
693 | the type. | |
694 | (tsubst_copy_and_build) <case CAST_EXPR>: Likewise. | |
695 | <case CONSTRUCTOR>: Likewise. | |
696 | ||
697 | 2022-03-12 Patrick Palka <ppalka@redhat.com> | |
698 | ||
699 | PR c++/104622 | |
700 | * call.cc (missing_conversion_p): Define. | |
701 | (add_candidates): Use it. | |
702 | * pt.cc (check_non_deducible_conversion): Change type of strict | |
703 | parameter to unification_kind_t and directly test for DEDUCE_CALL. | |
704 | ||
705 | 2022-03-12 Patrick Palka <ppalka@redhat.com> | |
706 | ||
707 | PR c++/104527 | |
708 | * constraint.cc (normalize_atom): Set | |
709 | ATOMIC_CONSTR_EXPR_FROM_CONCEPT_P appropriately. | |
710 | (get_mapped_args): Make static, adjust parameters. Always | |
711 | return a vector whose depth corresponds to the template depth of | |
712 | the context of the atomic constraint expression. Micro-optimize | |
713 | by passing false as exact to safe_grow_cleared and by collapsing | |
714 | a multi-level depth-one argument vector. | |
715 | (satisfy_atom): Adjust call to get_mapped_args and | |
716 | diagnose_atomic_constraint. | |
717 | (diagnose_atomic_constraint): Replace map parameter with an args | |
718 | parameter. | |
719 | * cp-tree.h (ATOMIC_CONSTR_EXPR_FROM_CONCEPT_P): Define. | |
720 | (get_mapped_args): Remove declaration. | |
721 | ||
722 | 2022-03-12 Patrick Palka <ppalka@redhat.com> | |
723 | Jason Merrill <jason@redhat.com> | |
724 | ||
725 | PR c++/98644 | |
726 | * constexpr.cc (mark_non_constant): Define, split out from ... | |
727 | (cxx_eval_outermost_constant_expr): ... here. | |
728 | (maybe_constant_value): Use it. | |
729 | ||
730 | 2022-03-12 Patrick Palka <ppalka@redhat.com> | |
731 | ||
732 | * semantics.cc (finish_unary_fold_expr): Use input_location | |
733 | instead of UNKNOWN_LOCATION. | |
734 | (finish_binary_fold_expr): Likewise. | |
735 | ||
736 | 2022-03-12 Thomas Schwinge <thomas@codesourcery.com> | |
737 | ||
738 | PR other/65095 | |
739 | * semantics.cc (handle_omp_array_sections_1) | |
740 | (cp_oacc_check_attachments): Call 'user_omp_clause_code_name' | |
741 | instead of 'c_omp_map_clause_name'. | |
742 | ||
5e28be89 GA |
743 | 2022-03-10 Marek Polacek <polacek@redhat.com> |
744 | ||
745 | PR c++/104608 | |
746 | * parser.cc (cp_parser_template_name): Repeat lookup of | |
747 | TYPE_DECLs. | |
748 | ||
749 | 2022-03-10 Marek Polacek <polacek@redhat.com> | |
750 | ||
751 | PR c++/104752 | |
752 | * semantics.cc (finish_compound_literal): Disallow auto{x} for | |
753 | is_constrained_auto. | |
754 | * typeck2.cc (build_functional_cast_1): Likewise. | |
755 | ||
756 | 2022-03-10 Marek Polacek <polacek@redhat.com> | |
757 | ||
758 | PR c++/104846 | |
759 | * decl.cc (grokdeclarator): Check FUNC_OR_METHOD_TYPE_P before giving | |
760 | data member errors. | |
761 | ||
762 | 2022-03-10 Jakub Jelinek <jakub@redhat.com> | |
763 | ||
764 | PR c++/103460 | |
765 | * decl.cc (grok_op_properties): Allow variadic operator[] for | |
766 | C++23. | |
767 | ||
768 | 2022-03-10 Roger Sayle <roger@nextmovesoftware.com> | |
769 | ||
770 | PR c++/95999 | |
771 | * decl.cc (finish_enum_value_list): If VALUE isn't an INTEGER_CST | |
772 | consider it to be zero (i.e. treat it like error_mark_node). | |
773 | (build_enumerator): Likewise, if PREV_VALUE isn't an INTEGER_CST, | |
774 | set VALUE to error_mark_node. | |
775 | ||
776 | 2022-03-10 Roger Sayle <roger@nextmovesoftware.com> | |
777 | ||
778 | PR c++/39751 | |
779 | * parser.cc (cp_parser_late_parsing_for_member): Confirm the token | |
780 | stream hasn't been purged before processing DECL_PENDING_INLINE. | |
781 | ||
8cc4f9cd GA |
782 | 2022-03-09 Patrick Palka <ppalka@redhat.com> |
783 | ||
784 | PR c++/104823 | |
785 | * except.cc (build_noexcept_spec): Strengthen dependence check | |
786 | to instantiation_dependent_expression_p. | |
787 | * parser.cc (cp_parser_parenthesized_expression_list_elt): | |
788 | Remove fold_expr_p parameter, and don't call | |
789 | instantiate_non_dependent_expr. | |
790 | (cp_parser_parenthesized_expression_list): Adjust accordingly. | |
791 | * pt.cc (expand_integer_pack): Strengthen dependence check | |
792 | to instantiation_dependent_expression_p. | |
793 | (instantiate_non_dependent_expr_internal): Adjust comment. | |
794 | (instantiate_non_dependent_expr_sfinae): Likewise. Drop | |
795 | the potentially-constant check, and relax and turn the | |
796 | dependence check into a checking assert. | |
797 | (instantiate_non_dependent_or_null): Adjust comment. | |
798 | * semantics.cc (finish_decltype_type): Keep | |
799 | processing_template_decl cleared after calling | |
800 | instantiate_non_dependent_expr_sfinae. | |
801 | ||
802 | 2022-03-09 Patrick Palka <ppalka@redhat.com> | |
803 | ||
804 | PR c++/102137 | |
805 | PR c++/87820 | |
806 | * cp-tree.h (is_copy_initialization): Declare. | |
807 | * decl.cc (cp_finish_decl): Set LOOKUP_ONLYCONVERTING | |
808 | when is_copy_initialization is true. | |
809 | * init.cc (build_aggr_init): Split out copy-initialization | |
810 | check into ... | |
811 | (is_copy_initialization): ... here. | |
812 | * pt.cc (instantiate_decl): Pass 0 instead of | |
813 | LOOKUP_ONLYCONVERTING as flags to cp_finish_decl. | |
814 | ||
815 | 2022-03-09 Patrick Palka <ppalka@redhat.com> | |
816 | ||
817 | PR c++/65396 | |
818 | * cp-tree.h (merge_default_template_args): Declare. | |
819 | * decl.cc (merge_default_template_args): Define, factored out | |
820 | from redeclare_class_template. | |
821 | (duplicate_decls): Use it when merging member function template | |
822 | and free function declarations. | |
823 | * pt.cc (redeclare_class_template): Factor out default argument | |
824 | merging logic into merge_default_template_args. Improve location | |
825 | of a note when there's a template parameter kind mismatch. | |
826 | ||
827 | 2022-03-09 Jakub Jelinek <jakub@redhat.com> | |
828 | ||
829 | PR c/104711 | |
830 | * constexpr.cc (cxx_eval_check_shift_p): Use TYPE_OVERFLOW_WRAPS | |
831 | instead of TYPE_UNSIGNED. | |
832 | * typeck.cc (cp_build_binary_op): Don't emit | |
833 | -Wshift-negative-value warning if TYPE_OVERFLOW_WRAPS. | |
834 | ||
8d038a84 GA |
835 | 2022-03-08 Roger Sayle <roger@nextmovesoftware.com> |
836 | ||
837 | PR c++/96440 | |
838 | * decl.cc (start_decl): Defend against prefix_attributes being | |
839 | error_mark_node. | |
840 | ||
841 | 2022-03-08 Roger Sayle <roger@nextmovesoftware.com> | |
842 | ||
843 | PR c++/96437 | |
844 | * parser.cc (synthesize_implicit_template_parm): Check that | |
845 | TREE_VALUE (new_parm) isn't error_mark_node before setting its | |
846 | DECL_VIRTUAL_P. | |
847 | ||
848 | 2022-03-08 Roger Sayle <roger@nextmovesoftware.com> | |
849 | ||
850 | PR c++/96329 | |
851 | * parser.cc (cp_parser_linkage_specification): Treat the case where | |
852 | linkage is error_mark_node as "invalid linkage-specification". | |
853 | ||
854 | 2022-03-08 Marek Polacek <polacek@redhat.com> | |
855 | ||
856 | PR c++/104108 | |
857 | * pt.cc (convert_nontype_argument): Recompute | |
858 | value_dependent_expression_p after build_converted_constant_expr. | |
859 | ||
860 | 2022-03-08 Marek Polacek <polacek@redhat.com> | |
861 | ||
862 | * decl2.cc (is_late_template_attribute): Do not defer attribute | |
863 | unavailable. | |
864 | * pt.cc (tsubst_enum): Set TREE_UNAVAILABLE. | |
865 | ||
866 | 2022-03-08 Jakub Jelinek <jakub@redhat.com> | |
867 | ||
868 | PR c++/104806 | |
869 | * search.cc (lookup_field_fuzzy_info::fuzzy_lookup_field): Ignore | |
870 | identifiers with space at the end. | |
871 | ||
e6533e2e GA |
872 | 2022-03-07 Jason Merrill <jason@redhat.com> |
873 | ||
874 | PR c++/104618 | |
875 | * decl2.cc (mark_single_function): Look through parens and location | |
876 | wrapper. | |
877 | * typeck.cc (cp_build_addr_expr_1): Not here. | |
878 | ||
879 | 2022-03-07 Jakub Jelinek <jakub@redhat.com> | |
880 | ||
881 | * parser.cc (cp_parser_omp_clause_map): Add missing space in string | |
882 | literal. | |
883 | ||
884 | 2022-03-07 Jakub Jelinek <jakub@redhat.com> | |
885 | ||
886 | * cvt.cc: Fix up duplicated word issue in a comment. | |
887 | * pt.cc: Likewise. | |
888 | * module.cc: Likewise. | |
889 | * coroutines.cc: Likewise. | |
890 | ||
8d96e14c GA |
891 | 2022-03-04 Nathan Sidwell <nathan@acm.org> |
892 | ||
893 | * mangle.cc (is_std_substitution): Check global module. | |
894 | (is_std_substitution_char): Return bool. | |
895 | ||
896 | 2022-03-04 Nathan Sidwell <nathan@acm.org> | |
897 | ||
898 | * cp-tree.h (mangle_identifier): Replace with ... | |
899 | (mangle_module_component): ... this. | |
900 | * mangle.cc (dump_substitution_candidates): Adjust. | |
901 | (add_substitution): Likewise. | |
902 | (find_substitution): Likewise. | |
903 | (unmangled_name_p): Likewise. | |
904 | (mangle_module_substitution): Reimplement. | |
905 | (mangle_module_component): New. | |
906 | (write_module, maybe_write_module): Adjust. | |
907 | (write_name): Drop modules here. | |
908 | (write_unqualified): Do them here instead. | |
909 | (mangle_global_init): Adjust. | |
910 | * module.cc (module_state::mangle): Adjust. | |
911 | (mangle_module): Likewise. | |
912 | (get_originating_module): Adjust. | |
913 | ||
a35f1697 GA |
914 | 2022-02-28 Marek Polacek <polacek@redhat.com> |
915 | ||
916 | PR c++/104682 | |
917 | * cp-tree.h (build_enumerator): Adjust. | |
918 | * decl.cc (finish_enum): Make it return the new decl. | |
919 | * pt.cc (tsubst_enum): Propagate TREE_DEPRECATED and TREE_UNAVAILABLE. | |
920 | ||
921 | 2022-02-28 Marek Polacek <polacek@redhat.com> | |
922 | ||
923 | PR c++/104667 | |
924 | * decl2.cc (is_late_template_attribute): Cope with a decl without | |
925 | a type. | |
926 | ||
88c1b038 GA |
927 | 2022-02-27 Jason Merrill <jason@redhat.com> |
928 | ||
929 | PR c++/104618 | |
930 | * typeck.cc (cp_build_addr_expr_1): Also | |
931 | maybe_undo_parenthesized_ref. | |
932 | ||
756a6185 GA |
933 | 2022-02-24 Martin Liska <mliska@suse.cz> |
934 | ||
935 | * pt.cc (defarg_insts_for): Use braces for subobject. | |
936 | ||
5a9ba3f2 GA |
937 | 2022-02-18 Patrick Palka <ppalka@redhat.com> |
938 | ||
939 | PR c++/94944 | |
940 | * pt.cc (maybe_instantiate_noexcept): For non-static member | |
941 | functions, set current_class_ptr/ref to the specialized 'this' | |
942 | instead. | |
943 | ||
0bdb0498 GA |
944 | 2022-02-17 Jason Merrill <jason@redhat.com> |
945 | ||
946 | PR c++/104539 | |
947 | * pt.cc (mark_decl_instantiated): Don't clear DECL_COMDAT. | |
948 | ||
949 | 2022-02-17 Jason Merrill <jason@redhat.com> | |
950 | ||
951 | PR c++/90451 | |
952 | * decl2.cc (mark_single_function): New. | |
953 | * cp-tree.h: Declare it. | |
954 | * typeck.cc (cp_build_addr_expr_1): mark_used when making a PMF. | |
955 | * semantics.cc (finish_qualified_id_expr): Not here. | |
956 | (finish_id_expression_1): Or here. | |
957 | (finish_decltype_type): Call mark_single_function. | |
958 | * cvt.cc (convert_to_void): And here. | |
959 | * pt.cc (convert_nontype_argument): And here. | |
960 | * init.cc (build_offset_ref): Adjust assert. | |
961 | ||
962 | 2022-02-17 Patrick Palka <ppalka@redhat.com> | |
963 | ||
964 | PR c++/104565 | |
965 | * semantics.cc (finish_compound_literal): Don't perform | |
966 | non-dependent expr folding before calling check_narrowing. | |
967 | ||
cb3afcd2 GA |
968 | 2022-02-16 Patrick Palka <ppalka@redhat.com> |
969 | ||
970 | PR c++/104507 | |
971 | * constexpr.cc (potential_constant_expression_1) | |
972 | <case NON_DEPENDENT_EXPR>: Return false instead of recursing. | |
973 | Assert tf_error isn't set. | |
974 | ||
875e493b GA |
975 | 2022-02-15 Jason Merrill <jason@redhat.com> |
976 | ||
977 | PR c++/104107 | |
978 | PR c++/95036 | |
979 | * pt.cc (coerce_template_template_parms): Take full parms. | |
980 | Avoid adding too much of outer_args. | |
981 | (coerce_template_template_parm): Adjust. | |
982 | (template_template_parm_bindings_ok_p): Adjust. | |
983 | (convert_template_argument): Adjust. | |
984 | ||
1f8a09d2 GA |
985 | 2022-02-14 Jakub Jelinek <jakub@redhat.com> |
986 | ||
987 | PR c++/104513 | |
988 | * constexpr.cc (potential_constant_expression_1) <case GOTO_EXPR>: | |
989 | Don't punt if returns (target). | |
990 | ||
e8d68f0a GA |
991 | 2022-02-11 Jakub Jelinek <jakub@redhat.com> |
992 | ||
993 | PR c++/104472 | |
994 | * constexpr.cc (cxx_eval_internal_function) <case IFN_VEC_CONVERT>: | |
995 | Only return fold_const_call result if it is non-NULL. Otherwise | |
996 | fall through into the default: case to return t, set *non_constant_p | |
997 | and emit diagnostics if needed. | |
998 | ||
a645583d GA |
999 | 2022-02-10 Jason Merrill <jason@redhat.com> |
1000 | ||
1001 | * module.cc (depset::hash::add_specializations): Use | |
1002 | STRIP_TEMPLATE. | |
1003 | ||
1004 | 2022-02-10 Tobias Burnus <tobias@codesourcery.com> | |
1005 | ||
1006 | PR c++/102204 | |
1007 | * decl2.cc (cp_omp_mappable_type_1): Remove check for virtual | |
1008 | members as those are permitted since OpenMP 5.0. | |
1009 | ||
1010 | 2022-02-10 Patrick Palka <ppalka@redhat.com> | |
1011 | ||
1012 | * pt.cc (filter_memfn_lookup): Handle dependent USING_DECL | |
1013 | better. | |
1014 | ||
1015 | 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com> | |
1016 | ||
1017 | * parser.cc (cp_parser_omp_clause_name): Parse 'has_device_addr' clause. | |
1018 | (cp_parser_omp_var_list_no_open): Handle array sections. | |
1019 | (cp_parser_omp_all_clauses): Added PRAGMA_OMP_CLAUSE_HAS_DEVICE_ADDR | |
1020 | case. | |
1021 | (cp_parser_omp_target_update): Added HAS_DEVICE_ADDR to OMP_CLAUSE_MASK. | |
1022 | * semantics.cc (handle_omp_array_sections): Handle clause restrictions. | |
1023 | (finish_omp_clauses): Handle array sections. | |
1024 | ||
3adf509f GA |
1025 | 2022-02-09 Patrick Palka <ppalka@redhat.com> |
1026 | ||
1027 | PR c++/104432 | |
1028 | * call.cc (build_new_method_call): When a non-dependent call | |
1029 | resolves to a specialization of a member template, always build | |
1030 | the pruned overload set using the member template, not the | |
1031 | specialization. | |
1032 | * pt.cc (filter_memfn_lookup): New parameter newtype. Simplify | |
1033 | and correct how members from the new lookup set are matched to | |
1034 | those from the old one. | |
1035 | (tsubst_baselink): Pass binfo_type as newtype to | |
1036 | filter_memfn_lookup. | |
1037 | ||
1038 | 2022-02-09 Jason Merrill <jason@redhat.com> | |
1039 | ||
1040 | PR c++/103752 | |
1041 | * module.cc (trees_out::core_vals): Stream explicit specifier. | |
1042 | (trees_in::core_vals): Likewise. | |
1043 | * pt.cc (store_explicit_specifier): No longer static. | |
1044 | (tsubst_function_decl): Clear DECL_HAS_DEPENDENT_EXPLICIT_SPEC_P. | |
1045 | * cp-tree.h (lookup_explicit_specifier): Declare. | |
1046 | ||
1047 | 2022-02-09 Jason Merrill <jason@redhat.com> | |
1048 | ||
1049 | PR c++/96876 | |
1050 | * typeck2.cc (split_nonconstant_init_1): Push cleanups for | |
1051 | preceding members with constant initialization. | |
1052 | (maybe_push_temp_cleanup): Do nothing if -fno-exceptions. | |
1053 | ||
2a2fda2d GA |
1054 | 2022-02-08 Jakub Jelinek <jakub@redhat.com> |
1055 | ||
1056 | PR c++/104379 | |
1057 | * name-lookup.cc (check_local_shadow): When diagnosing shadowing | |
1058 | of a member or global declaration, add warning suppression for | |
1059 | the decl and don't warn again on it. | |
1060 | ||
1061 | 2022-02-08 Jakub Jelinek <jakub@redhat.com> | |
1062 | ||
1063 | PR c++/104403 | |
1064 | * constexpr.cc (cxx_eval_constant_expression): Don't assert DECL_EXPRs | |
1065 | of TREE_STATIC vars may only appear in -std=c++23. | |
1066 | ||
1067 | 2022-02-08 Patrick Palka <ppalka@redhat.com> | |
1068 | ||
1069 | PR c++/80951 | |
1070 | * pt.cc (uses_deducible_template_parms): Consider the | |
1071 | noexcept-spec of a function type. | |
1072 | ||
1073 | 2022-02-08 Patrick Palka <ppalka@redhat.com> | |
1074 | ||
1075 | PR c++/104410 | |
1076 | * constraint.cc (satisfaction_value): Relax assert to accept | |
1077 | cv-qualified bool. | |
1078 | ||
1079 | 2022-02-08 Patrick Palka <ppalka@redhat.com> | |
1080 | ||
1081 | PR c++/103706 | |
1082 | * pt.cc (preserve_args): New function. | |
1083 | (tsubst_lambda_expr): Use it when setting LAMBDA_EXPR_REGEN_INFO. | |
1084 | ||
1085 | 2022-02-08 Patrick Palka <ppalka@redhat.com> | |
1086 | ||
1087 | PR c++/103706 | |
1088 | * constraint.cc (satisfy_declaration_constraints): Use | |
1089 | lambda_regenerating_args instead. | |
1090 | * cp-tree.h (lambda_regenerating_args): Declare. | |
1091 | * pt.cc (lambda_regenerating_args): Define, split out from | |
1092 | satisfy_declaration_constraints. | |
1093 | (do_auto_deduction): Use lambda_regenerating_args to obtain the | |
1094 | full set of outer template arguments for satisfaction when | |
1095 | inside a lambda. | |
1096 | ||
353f8fcc GA |
1097 | 2022-02-06 Patrick Palka <ppalka@redhat.com> |
1098 | ||
1099 | PR c++/96242 | |
1100 | * decl2.cc (mark_used): Directly synthesize a DECL_MAYBE_DELETED | |
1101 | fn by calling maybe_synthesize_method instead of relying on | |
1102 | maybe_instantiate_noexcept. Move call to m_i_n after the | |
1103 | DECL_DELETED_FN handling. | |
1104 | * pt.cc (maybe_instantiate_noexcept): Restrict DECL_MAYBE_DELETED | |
1105 | fn synthesis to only those with an implicit noexcept-spec, and | |
1106 | return !DECL_DELETED_FN instead of !DECL_MAYBE_DELETED afterwards. | |
1107 | ||
1108 | 2022-02-06 Jakub Jelinek <jakub@redhat.com> | |
1109 | ||
1110 | PR c++/89074 | |
1111 | PR c++/104033 | |
1112 | * constexpr.cc (cxx_eval_binary_expression): Temporarily set | |
1113 | folding_cxx_constexpr. | |
1114 | ||
661109b0 GA |
1115 | 2022-02-05 Jason Merrill <jason@redhat.com> |
1116 | ||
1117 | PR c++/104300 | |
1118 | PR c++/92385 | |
1119 | * cp-tree.h (get_vec_init_expr): New. | |
1120 | (target_expr_needs_replace): New. | |
1121 | * cp-gimplify.cc (cp_gimplify_init_expr): Use it. | |
1122 | (struct cp_fold_data): New. | |
1123 | (cp_fold_r): Only genericize inits at end of fn. | |
1124 | (cp_fold_function): Here. | |
1125 | (cp_fully_fold_init): Not here. | |
1126 | * init.cc (build_vec_init): Use get_vec_init_expr. | |
1127 | * tree.cc (build_vec_init_expr): Likewise. | |
1128 | * typeck2.cc (split_nonconstant_init_1): Likewise. | |
1129 | (process_init_constructor): Wrap VEC_INIT_EXPR in | |
1130 | TARGET_EXPR. | |
1131 | ||
1132 | 2022-02-05 Jason Merrill <jason@redhat.com> | |
1133 | ||
1134 | * pt.cc (iterative_hash_template_arg): Add comment. | |
1135 | ||
682ede39 GA |
1136 | 2022-02-03 Patrick Palka <ppalka@redhat.com> |
1137 | ||
1138 | PR c++/104079 | |
1139 | * pt.cc (value_dependent_noexcept_spec_p): New predicate split | |
1140 | out from ... | |
1141 | (dependent_type_p_r): ... here. | |
1142 | (instantiation_dependent_r): Use value_dependent_noexcept_spec_p | |
1143 | to consider dependence of a noexcept-spec before C++17. | |
1144 | * tree.cc (fixup_deferred_exception_variants): Clear | |
1145 | TYPE_DEPENDENT_P_VALID. | |
1146 | ||
1147 | 2022-02-03 Jason Merrill <jason@redhat.com> | |
1148 | ||
1149 | PR c++/104302 | |
1150 | * decl.cc (maybe_deduce_size_from_array_init): Give up | |
1151 | on type-dependent init. | |
1152 | (cp_complete_array_type): Only call reshape_init for character | |
1153 | array. | |
1154 | ||
ae7e4af9 GA |
1155 | 2022-02-01 Jason Merrill <jason@redhat.com> |
1156 | ||
1157 | PR c++/103186 | |
1158 | * pt.cc (defarg_inst): Use tree_vec_map_cache_hasher. | |
1159 | (defarg_insts_for): New. | |
1160 | (tsubst_default_argument): Adjust. | |
1161 | ||
1bb52662 GA |
1162 | 2022-01-31 Marek Polacek <polacek@redhat.com> |
1163 | ||
1164 | PR c++/102414 | |
1165 | PR c++/101874 | |
1166 | * decl.cc (create_array_type_for_decl): Use template_placeholder_p. | |
1167 | Sorry on a variable-length array of auto. | |
1168 | ||
1169 | 2022-01-31 Marek Polacek <polacek@redhat.com> | |
1170 | ||
1171 | PR c++/102434 | |
1172 | * class.cc (finish_struct): Don't allow union initializer_list. | |
1173 | ||
1174 | 2022-01-31 Patrick Palka <ppalka@redhat.com> | |
1175 | ||
1176 | PR c++/104294 | |
1177 | * pt.cc (ctor_deduction_guides_for): Correct computation of | |
1178 | outer_args. | |
1179 | ||
1180 | 2022-01-31 Patrick Palka <ppalka@redhat.com> | |
1181 | ||
1182 | PR c++/104291 | |
1183 | * pt.cc (for_each_template_parm_r) <case CONSTRUCTOR>: Clear | |
1184 | walk_subtrees if !include_nondeduced_p. Simplify given that | |
1185 | cp_walk_subtrees already walks TYPE_PTRMEMFUNC_FN_TYPE_RAW. | |
1186 | ||
f6f2d6cf GA |
1187 | 2022-01-28 Patrick Palka <ppalka@redhat.com> |
1188 | Jason Merrill <jason@redhat.com> | |
1189 | ||
1190 | PR c++/92752 | |
1191 | * typeck.cc (build_ptrmemfunc): Cast a nullptr constant to the | |
1192 | unqualified pointer type not the qualified one. | |
1193 | ||
1194 | 2022-01-28 Patrick Palka <ppalka@redhat.com> | |
1195 | ||
1196 | PR c++/103341 | |
1197 | * decl.cc (cp_finish_decl): Pass the template arguments of a | |
1198 | variable template specialization or a templated static data | |
1199 | member to do_auto_deduction when the auto is constrained. | |
1200 | ||
1201 | 2022-01-28 Jason Merrill <jason@redhat.com> | |
1202 | ||
1203 | PR c++/100198 | |
1204 | PR c++/100030 | |
1205 | PR c++/100282 | |
1206 | * parser.cc (cp_parser_enumerator_definition): Sorry on parameter | |
1207 | pack in lambda. | |
1208 | (cp_parser_class_head): And in class attributes. | |
1209 | * pt.cc (check_for_bare_parameter_packs): Sorry instead of error | |
1210 | in lambda. | |
1211 | ||
99f17e99 GA |
1212 | 2022-01-27 Jason Merrill <jason@redhat.com> |
1213 | ||
1214 | PR c++/104245 | |
1215 | PR c++/51344 | |
1216 | * decl2.cc (save_template_attributes): Take late attrs as parm. | |
1217 | (cplus_decl_attributes): Call it after decl_attributes, | |
1218 | splice_template_attributes before. | |
1219 | ||
1220 | 2022-01-27 Patrick Palka <ppalka@redhat.com> | |
1221 | ||
1222 | PR c++/99895 | |
1223 | * call.cc (build_over_call): For a non-dependent member call, | |
1224 | build up a CALL_EXPR using a COMPONENT_REF callee, as in | |
1225 | build_new_method_call. | |
1226 | * pt.cc (build_non_dependent_expr): Don't wrap PARM_DECL either. | |
1227 | * tree.cc (build_min_non_dep_op_overload): Adjust accordingly | |
1228 | after the build_over_call change. | |
1229 | ||
1230 | 2022-01-27 Patrick Palka <ppalka@redhat.com> | |
1231 | ||
1232 | PR c++/92944 | |
1233 | PR c++/103678 | |
1234 | * parser.cc (cp_parser_class_head): Update 'type' with the result | |
1235 | of maybe_process_partial_specialization in the | |
1236 | nested_name_specifier branch. Refactor nearby code to accomodate | |
1237 | that maybe_process_partial_specialization returns a _TYPE, not a | |
1238 | TYPE_DECL, and eliminate local variable 'class_type' in passing. | |
1239 | ||
1240 | 2022-01-27 Marek Polacek <polacek@redhat.com> | |
1241 | ||
1242 | PR c++/101988 | |
1243 | * decl.cc (create_array_type_for_decl): Reject forming an array of | |
1244 | placeholder for a deduced class type. | |
1245 | ||
eaa59070 GA |
1246 | 2022-01-26 Jason Merrill <jason@redhat.com> |
1247 | ||
1248 | PR c++/104206 | |
1249 | PR c++/101072 | |
1250 | * semantics.cc (finish_compound_literal): Restore VECTOR_TYPE check. | |
1251 | ||
1252 | 2022-01-26 Jakub Jelinek <jakub@redhat.com> | |
1253 | ||
1254 | PR c++/104226 | |
1255 | * constexpr.cc (init_subob_ctx): For vector ctors containing | |
1256 | vector elements, ensure appending to the same ctor instead of | |
1257 | creating another one. | |
1258 | ||
1259 | 2022-01-26 Marek Polacek <polacek@redhat.com> | |
1260 | ||
1261 | PR target/104213 | |
1262 | * decl.cc (finish_constructor_body): Suppress -Wuse-after-free. | |
1263 | (finish_destructor_body): Likewise. | |
1264 | * optimize.cc (build_delete_destructor_body): Likewise. | |
1265 | ||
1266 | 2022-01-26 Jason Merrill <jason@redhat.com> | |
1267 | ||
1268 | PR c++/104235 | |
1269 | * parser.cc (cp_parser_template_name): Repeat lookup of USING_DECL. | |
1270 | ||
1271 | 2022-01-26 Jason Merrill <jason@redhat.com> | |
1272 | ||
1273 | PR c++/103057 | |
1274 | * pt.cc (tsubst_aggr_type): Call tsubst for alias template | |
1275 | specialization. | |
1276 | ||
e0b8716f GA |
1277 | 2022-01-25 Patrick Palka <ppalka@redhat.com> |
1278 | ||
1279 | PR c++/101532 | |
1280 | PR c++/104225 | |
1281 | * decl2.cc (mark_used): Don't consider maybe_instantiate_noexcept | |
1282 | on a deleted function. | |
1283 | ||
1284 | 2022-01-25 Jason Merrill <jason@redhat.com> | |
1285 | ||
1286 | PR c++/59950 | |
1287 | * call.cc (build_over_call): Use cp_build_indirect_ref. | |
1288 | ||
bb99171b GA |
1289 | 2022-01-24 Patrick Palka <ppalka@redhat.com> |
1290 | ||
1291 | PR c++/104197 | |
1292 | * pt.cc (make_auto_1): Use -1 as a placeholder default argument | |
1293 | for level. | |
1294 | ||
1295 | 2022-01-24 Patrick Palka <ppalka@redhat.com> | |
1296 | ||
1297 | PR c++/104173 | |
1298 | * typeck.cc (build_class_member_access_expr): Extend | |
1299 | unary_complex_lvalue result adjustment to preserve all | |
1300 | rvalues, not just xvalues. | |
1301 | ||
0c940703 GA |
1302 | 2022-01-23 Will Wray <wjwray@gmail.com> |
1303 | ||
1304 | PR c++/55227 | |
1305 | * decl.cc (reshape_init_r): Only call has_designator_check when | |
1306 | first_initializer_p or for the inner constructor element. | |
1307 | (cp_complete_array_type): Call reshape_init on braced-init-list. | |
1308 | ||
1309 | 2022-01-23 Jason Merrill <jason@redhat.com> | |
1310 | ||
1311 | PR c++/104182 | |
1312 | * cp-gimplify.cc (cp_genericize_target_expr): Make sure nothing | |
1313 | has set DECL_INITIAL on a TARGET_EXPR slot. | |
1314 | * tree.cc (is_local_temp): Don't check DECL_CONTEXT. | |
1315 | ||
1316 | 2022-01-23 Jason Merrill <jason@redhat.com> | |
1317 | ||
1318 | PR c++/101072 | |
1319 | * cp-tree.h (build_implicit_conv_flags): Declare. | |
1320 | * call.cc (build_implicit_conv_flags): Split out from... | |
1321 | (perform_implicit_conversion_flags): ...here. | |
1322 | * decl.cc (check_initializer): Use it. | |
1323 | * pt.cc (tsubst_copy_and_build): Remove TARGET_EXPR handling. | |
1324 | * semantics.cc (finish_compound_literal): Don't treat | |
1325 | scalar values like CONSTRUCTORs. | |
1326 | ||
9dd44357 GA |
1327 | 2022-01-21 Jason Merrill <jason@redhat.com> |
1328 | ||
1329 | * semantics.cc (find_failing_clause): Return expr if not | |
1330 | decomposable. | |
1331 | (finish_static_assert): Show constant values in failing | |
1332 | comparison. | |
1333 | ||
1334 | 2022-01-21 Jason Merrill <jason@redhat.com> | |
1335 | ||
1336 | PR c++/104084 | |
1337 | PR c++/20040 | |
1338 | * init.cc (build_new_1): Only pull out TARGET_EXPR_INITIAL if | |
1339 | alloc_expr is a TARGET_EXPR. | |
1340 | ||
1341 | 2022-01-21 Marek Polacek <polacek@redhat.com> | |
1342 | ||
1343 | PR c++/101715 | |
1344 | * tree.cc (fixup_deferred_exception_variants): Remove duplicate | |
1345 | variants after parsing the exception specifications. | |
1346 | ||
1347 | 2022-01-21 Jason Merrill <jason@redhat.com> | |
1348 | ||
1349 | PR c++/104139 | |
1350 | PR c++/103681 | |
1351 | * class.cc (end_of_class): Use base_binfo. | |
1352 | ||
5fa55d55 GA |
1353 | 2022-01-20 Jason Merrill <jason@redhat.com> |
1354 | ||
1355 | PR c++/101405 | |
1356 | * decl.cc (reshape_init_class): Reject designator for a member of | |
1357 | another class. | |
1358 | ||
1359 | 2022-01-20 Patrick Palka <ppalka@redhat.com> | |
1360 | ||
1361 | PR c++/91911 | |
1362 | PR c++/103672 | |
1363 | * pt.cc (keep_template_parm): Punt on a level 0 template parm. | |
1364 | (tsubst_decl) <case VAR_DECL>: Remove !CHECKING_P safeguard. | |
1365 | (tsubst) <case TEMPLATE_TYPE_PARM>: Handle CTAD placeholders | |
1366 | specially. | |
1367 | (make_auto_1): Add defaulted 'level' parameter. | |
1368 | (make_template_placeholder): Pass 0 as 'level' to make_auto_1. | |
1369 | ||
1370 | 2022-01-20 Patrick Palka <ppalka@redhat.com> | |
1371 | ||
1372 | * decl.cc (grokdeclarator): Diagnose a CTAD placeholder as | |
1373 | function return type even when !funcdecl_p. | |
1374 | ||
1375 | 2022-01-20 Martin Liska <mliska@suse.cz> | |
1376 | ||
1377 | PR c++/104134 | |
1378 | * error.cc (dump_aggr_type): Partially disable the warning. | |
1379 | ||
1380 | 2022-01-20 Jason Merrill <jason@redhat.com> | |
1381 | ||
1382 | PR c++/102300 | |
1383 | * parser.cc (cp_parser_template_name): Use dependent_scope_p. | |
1384 | ||
fe1ad141 GA |
1385 | 2022-01-19 David Malcolm <dmalcolm@redhat.com> |
1386 | ||
1387 | * cp-lang.cc (selftest::run_cp_tests): Update calls for .c to .cc | |
1388 | renaming. | |
1389 | * cp-tree.h (cp_pt_c_tests): Rename to... | |
1390 | (cp_pt_cc_tests): ...this. | |
1391 | (cp_tree_c_tests): Rename to... | |
1392 | (cp_tree_cc_tests): ...this. | |
1393 | * pt.cc (cp_pt_c_tests): Rename to... | |
1394 | (cp_pt_cc_tests): ...this. | |
1395 | * tree.cc (cp_tree_c_tests): Rename to... | |
1396 | (cp_tree_cc_tests): ...this. | |
1397 | ||
1398 | 2022-01-19 Jason Merrill <jason@redhat.com> | |
1399 | ||
1400 | * parser.cc (saved_token_sentinel::rollback): Use | |
1401 | cp_lexer_previous_token. | |
1402 | ||
7a761ae6 GA |
1403 | 2022-01-18 Jakub Jelinek <jakub@redhat.com> |
1404 | ||
1405 | PR c++/104055 | |
1406 | * constexpr.cc (cxx_eval_outermost_constant_expr): If t is a | |
1407 | TARGET_EXPR with TARGET_EXPR_CLEANUP, use get_target_expr rather | |
1408 | than get_target_expr_sfinae with tf_no_cleanup, and don't set | |
1409 | TREE_CONSTANT. | |
1410 | ||
1411 | 2022-01-18 Jason Merrill <jason@redhat.com> | |
1412 | Jakub Jelinek <jakub@redhat.com> | |
1413 | ||
1414 | PR c++/104025 | |
1415 | * parser.cc (saved_token_sentinel::rollback): Call | |
1416 | cp_lexer_set_source_position. | |
1417 | (~saved_token_sentinel): Call rollback. | |
1418 | ||
1419 | 2022-01-18 Patrick Palka <ppalka@redhat.com> | |
1420 | ||
1421 | PR c++/104074 | |
1422 | * pt.cc (invalid_nontype_parm_type_p): Use WILDCARD_TYPE_P so | |
1423 | that we return false for DEPENDENT_OPERATOR_TYPE too. | |
1424 | ||
fc829782 GA |
1425 | 2022-01-17 Martin Liska <mliska@suse.cz> |
1426 | ||
1427 | * Make-lang.in: Rename .c names to .cc. | |
1428 | * config-lang.in: Likewise. | |
1429 | * constexpr.cc (cxx_eval_constant_expression): Likewise. | |
1430 | * coroutines.cc (morph_fn_to_coro): Likewise. | |
1431 | * cp-gimplify.cc (cp_gimplify_expr): Likewise. | |
1432 | * cp-lang.cc (struct lang_hooks): Likewise. | |
1433 | (get_template_argument_pack_elems_folded): Likewise. | |
1434 | * cp-objcp-common.cc (cp_tree_size): Likewise. | |
1435 | (cp_unit_size_without_reusable_padding): Likewise. | |
1436 | (pop_file_scope): Likewise. | |
1437 | (cp_pushdecl): Likewise. | |
1438 | * cp-objcp-common.h (GCC_CP_OBJCP_COMMON): Likewise. | |
1439 | (cxx_simulate_record_decl): Likewise. | |
1440 | * cp-tree.h (struct named_label_entry): Likewise. | |
1441 | (current_function_return_value): Likewise. | |
1442 | (more_aggr_init_expr_args_p): Likewise. | |
1443 | (get_function_version_dispatcher): Likewise. | |
1444 | (common_enclosing_class): Likewise. | |
1445 | (strip_fnptr_conv): Likewise. | |
1446 | (current_decl_namespace): Likewise. | |
1447 | (do_aggregate_paren_init): Likewise. | |
1448 | (cp_check_const_attributes): Likewise. | |
1449 | (qualified_name_lookup_error): Likewise. | |
1450 | (generic_targs_for): Likewise. | |
1451 | (mark_exp_read): Likewise. | |
1452 | (is_global_friend): Likewise. | |
1453 | (maybe_reject_flexarray_init): Likewise. | |
1454 | (module_token_lang): Likewise. | |
1455 | (handle_module_option): Likewise. | |
1456 | (literal_integer_zerop): Likewise. | |
1457 | (build_extra_args): Likewise. | |
1458 | (build_if_nonnull): Likewise. | |
1459 | (maybe_check_overriding_exception_spec): Likewise. | |
1460 | (finish_omp_target_clauses): Likewise. | |
1461 | (maybe_warn_zero_as_null_pointer_constant): Likewise. | |
1462 | (cxx_print_error_function): Likewise. | |
1463 | (decl_in_std_namespace_p): Likewise. | |
1464 | (merge_exception_specifiers): Likewise. | |
1465 | (mangle_module_global_init): Likewise. | |
1466 | (cxx_block_may_fallthru): Likewise. | |
1467 | (fold_builtin_source_location): Likewise. | |
1468 | (enum cp_oracle_request): Likewise. | |
1469 | (subsumes): Likewise. | |
1470 | (cp_finish_injected_record_type): Likewise. | |
1471 | (vtv_build_vtable_verify_fndecl): Likewise. | |
1472 | (cp_tree_c_finish_parsing): Likewise. | |
1473 | * cvt.cc (diagnose_ref_binding): Likewise. | |
1474 | (convert_to_void): Likewise. | |
1475 | (convert_force): Likewise. | |
1476 | (type_promotes_to): Likewise. | |
1477 | * decl.cc (make_unbound_class_template_raw): Likewise. | |
1478 | (cxx_init_decl_processing): Likewise. | |
1479 | (check_class_member_definition_namespace): Likewise. | |
1480 | (cxx_maybe_build_cleanup): Likewise. | |
1481 | * decl2.cc (maybe_emit_vtables): Likewise. | |
1482 | * error.cc (dump_function_name): Likewise. | |
1483 | * init.cc (is_class_type): Likewise. | |
1484 | (build_new_1): Likewise. | |
1485 | * lang-specs.h: Likewise. | |
1486 | * method.cc (make_alias_for_thunk): Likewise. | |
1487 | * module.cc (specialization_add): Likewise. | |
1488 | (module_state::read_cluster): Likewise. | |
1489 | * name-lookup.cc (check_extern_c_conflict): Likewise. | |
1490 | * name-lookup.h (struct cxx_binding): Likewise. | |
1491 | * parser.cc (cp_parser_identifier): Likewise. | |
1492 | * parser.h (struct cp_parser): Likewise. | |
1493 | * pt.cc (has_value_dependent_address): Likewise. | |
1494 | (push_tinst_level_loc): Likewise. | |
1495 | * semantics.cc (finish_omp_clauses): Likewise. | |
1496 | (finish_omp_atomic): Likewise. | |
1497 | * tree.cc (cp_save_expr): Likewise. | |
1498 | (cp_free_lang_data): Likewise. | |
1499 | * typeck.cc (cp_common_type): Likewise. | |
1500 | (strip_array_domain): Likewise. | |
1501 | (rationalize_conditional_expr): Likewise. | |
1502 | (check_return_expr): Likewise. | |
1503 | * vtable-class-hierarchy.cc: Likewise. | |
1504 | ||
1505 | 2022-01-17 Martin Liska <mliska@suse.cz> | |
1506 | ||
1507 | * call.c: Moved to... | |
1508 | * call.cc: ...here. | |
1509 | * class.c: Moved to... | |
1510 | * class.cc: ...here. | |
1511 | * constexpr.c: Moved to... | |
1512 | * constexpr.cc: ...here. | |
1513 | * cp-gimplify.c: Moved to... | |
1514 | * cp-gimplify.cc: ...here. | |
1515 | * cp-lang.c: Moved to... | |
1516 | * cp-lang.cc: ...here. | |
1517 | * cp-objcp-common.c: Moved to... | |
1518 | * cp-objcp-common.cc: ...here. | |
1519 | * cp-ubsan.c: Moved to... | |
1520 | * cp-ubsan.cc: ...here. | |
1521 | * cvt.c: Moved to... | |
1522 | * cvt.cc: ...here. | |
1523 | * cxx-pretty-print.c: Moved to... | |
1524 | * cxx-pretty-print.cc: ...here. | |
1525 | * decl.c: Moved to... | |
1526 | * decl.cc: ...here. | |
1527 | * decl2.c: Moved to... | |
1528 | * decl2.cc: ...here. | |
1529 | * dump.c: Moved to... | |
1530 | * dump.cc: ...here. | |
1531 | * error.c: Moved to... | |
1532 | * error.cc: ...here. | |
1533 | * except.c: Moved to... | |
1534 | * except.cc: ...here. | |
1535 | * expr.c: Moved to... | |
1536 | * expr.cc: ...here. | |
1537 | * friend.c: Moved to... | |
1538 | * friend.cc: ...here. | |
1539 | * g++spec.c: Moved to... | |
1540 | * g++spec.cc: ...here. | |
1541 | * init.c: Moved to... | |
1542 | * init.cc: ...here. | |
1543 | * lambda.c: Moved to... | |
1544 | * lambda.cc: ...here. | |
1545 | * lex.c: Moved to... | |
1546 | * lex.cc: ...here. | |
1547 | * mangle.c: Moved to... | |
1548 | * mangle.cc: ...here. | |
1549 | * method.c: Moved to... | |
1550 | * method.cc: ...here. | |
1551 | * name-lookup.c: Moved to... | |
1552 | * name-lookup.cc: ...here. | |
1553 | * optimize.c: Moved to... | |
1554 | * optimize.cc: ...here. | |
1555 | * parser.c: Moved to... | |
1556 | * parser.cc: ...here. | |
1557 | * pt.c: Moved to... | |
1558 | * pt.cc: ...here. | |
1559 | * ptree.c: Moved to... | |
1560 | * ptree.cc: ...here. | |
1561 | * rtti.c: Moved to... | |
1562 | * rtti.cc: ...here. | |
1563 | * search.c: Moved to... | |
1564 | * search.cc: ...here. | |
1565 | * semantics.c: Moved to... | |
1566 | * semantics.cc: ...here. | |
1567 | * tree.c: Moved to... | |
1568 | * tree.cc: ...here. | |
1569 | * typeck.c: Moved to... | |
1570 | * typeck.cc: ...here. | |
1571 | * typeck2.c: Moved to... | |
1572 | * typeck2.cc: ...here. | |
1573 | * vtable-class-hierarchy.c: Moved to... | |
1574 | * vtable-class-hierarchy.cc: ...here. | |
1575 | ||
1576 | 2022-01-17 Jakub Jelinek <jakub@redhat.com> | |
1577 | ||
1578 | PR c++/104031 | |
1579 | * cp-gimplify.c (cp_genericize_target_expr): Set DECL_CONTEXT of | |
1580 | TARGET_EXPR_SLOT to current_function_decl if it was NULL. | |
1581 | ||
1582 | 2022-01-17 Andrew Stubbs <ams@codesourcery.com> | |
1583 | ||
1584 | * parser.c (cp_parser_omp_requires): Don't "sorry" dynamic_allocators. | |
1585 | ||
617db51d GA |
1586 | 2022-01-14 Chung-Lin Tang <cltang@codesourcery.com> |
1587 | ||
1588 | PR c++/103705 | |
1589 | * semantics.c (finish_omp_clauses): Also continue peeling off of | |
1590 | outer node for ARRAY_REFs. | |
1591 | ||
1592 | 2022-01-14 Jakub Jelinek <jakub@redhat.com> | |
1593 | ||
1594 | PR c++/103991 | |
1595 | * cp-objcp-common.c (cxx_block_may_fallthru) <case IF_STMT>: For | |
1596 | IF_STMT_CONSTEXPR_P with constant false or true condition only | |
1597 | check if the taken clause may fall through. | |
1598 | * cp-gimplify.c (genericize_if_stmt): For consteval if, revert | |
1599 | to r12-5638^ behavior if then_ block can't fall through. For | |
1600 | constexpr if, revert to r12-5638^ behavior. | |
1601 | ||
ad3f0d08 GA |
1602 | 2022-01-13 Anthony Sharp <anthonysharp15@gmail.com> |
1603 | Jason Merrill <jason@redhat.com> | |
1604 | ||
1605 | PR c++/70417 | |
1606 | * parser.c (cp_parser_id_expression): Handle | |
1607 | -Wmissing-template-keyword. | |
1608 | (struct saved_token_sentinel): Add modes to control what happens | |
1609 | on destruction. | |
1610 | (cp_parser_statement): Adjust. | |
1611 | (cp_parser_skip_entire_template_parameter_list): New function that | |
1612 | skips an entire template parameter list. | |
1613 | (cp_parser_require_end_of_template_parameter_list): Rename old | |
1614 | cp_parser_skip_to_end_of_template_parameter_list. | |
1615 | (cp_parser_skip_to_end_of_template_parameter_list): Refactor to be | |
1616 | called from one of the above two functions. | |
1617 | (cp_parser_lambda_declarator_opt) | |
1618 | (cp_parser_explicit_template_declaration) | |
1619 | (cp_parser_enclosed_template_argument_list): Adjust. | |
1620 | ||
02a8a01b GA |
1621 | 2022-01-12 Jakub Jelinek <jakub@redhat.com> |
1622 | Jason Merrill <jason@redhat.com> | |
1623 | ||
1624 | PR c++/103480 | |
1625 | * tree.c (move): If expr is xvalue_p, just return expr without | |
1626 | build_static_cast. | |
1627 | ||
01a254e3 GA |
1628 | 2022-01-11 Jakub Jelinek <jakub@redhat.com> |
1629 | ||
1630 | PR c++/101597 | |
1631 | * class.c (build_vfn_ref): Build OBJ_TYPE_REF with INTEGER_CST | |
1632 | OBJ_TYPE_REF_TOKEN with type equal to OBJ_TYPE_REF_OBJECT type. | |
1633 | * error.c (resolve_virtual_fun_from_obj_type_ref): Use type of | |
1634 | OBJ_TYPE_REF_TOKEN rather than type of OBJ_TYPE_REF_OBJECT as | |
1635 | obj_type. | |
1636 | ||
1637 | 2022-01-11 Patrick Palka <ppalka@redhat.com> | |
1638 | ||
1639 | PR c++/103831 | |
1640 | * call.c (build_new_method_call): Consider dependent bases only | |
1641 | if 'this' is available. | |
1642 | ||
1643 | 2022-01-11 Olivier Hainque <hainque@adacore.com> | |
1644 | ||
1645 | * decl.c (cxx_init_decl_processing): Move code possibly | |
1646 | altering flag_weak before code testing it. | |
1647 | ||
d9450aa0 GA |
1648 | 2022-01-10 Patrick Palka <ppalka@redhat.com> |
1649 | ||
1650 | PR c++/103879 | |
1651 | * constexpr.c (cxx_fold_indirect_ref): Split out object/offset | |
1652 | canonicalization step into a local lambda. Strengthen it to | |
1653 | absorb more components at position 0. Use it before both calls | |
1654 | to cxx_fold_indirect_ref_1. | |
1655 | ||
1656 | 2022-01-10 Patrick Palka <ppalka@redhat.com> | |
1657 | ||
1658 | PR c++/103783 | |
1659 | * call.c (cand_parms_match): Skip over 'this' when given one | |
1660 | static and one non-static member function. | |
1661 | ||
1662 | 2022-01-10 Jakub Jelinek <jakub@redhat.com> | |
1663 | ||
1664 | PR c++/103912 | |
1665 | * semantics.c (expand_or_defer_fn): For immediate functions, set | |
1666 | node->body_removed to true and clear analyzed, definition and | |
1667 | force_output. | |
1668 | * decl2.c (c_parse_final_cleanups): Ignore immediate functions for | |
1669 | expand_or_defer_fn. | |
1670 | ||
2848ef14 GA |
1671 | 2022-01-08 Jakub Jelinek <jakub@redhat.com> |
1672 | ||
1673 | PR c++/89074 | |
1674 | * constexpr.c (cxx_maybe_fold_addr_pointer_plus): New function. | |
1675 | (cxx_eval_binary_expression): Use it. | |
1676 | ||
1677 | 2022-01-08 Jason Merrill <jason@redhat.com> | |
1678 | ||
1679 | PR c++/103946 | |
1680 | * init.c (build_vec_init): Remove assert. | |
1681 | * tree.c (build_vec_init_expr): Likewise. | |
1682 | ||
1683 | 2022-01-08 Jason Merrill <jason@redhat.com> | |
1684 | ||
1685 | PR c++/100588 | |
1686 | * call.c (build_op_delete_call): Ignore destroying delete | |
1687 | if alloc_fn. | |
1688 | ||
55e96bf9 GA |
1689 | 2022-01-07 Jason Merrill <jason@redhat.com> |
1690 | ||
1691 | PR c++/20040 | |
1692 | * init.c (build_new_1): Also build pointer cleanup if | |
1693 | TYPE_GETS_DELETE. | |
1694 | * cp-tree.h (TYPE_GETS_VEC_DELETE): New. | |
1695 | ||
1696 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1697 | ||
1698 | PR c++/103936 | |
1699 | PR c++/65591 | |
1700 | * cp-gimplify.c (cp_gimplify_expr): Restore VEC_INIT_EXPR handling. | |
1701 | ||
1702 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1703 | ||
1704 | PR c++/103711 | |
1705 | * init.c (perform_target_ctor): Select destructor by in_chrg. | |
1706 | ||
1707 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1708 | ||
1709 | PR c++/61611 | |
1710 | * except.c (in_nested_catch): New. | |
1711 | (expand_end_catch_block): Check it. | |
1712 | ||
1713 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1714 | ||
1715 | PR c++/33799 | |
1716 | PR c++/102191 | |
1717 | * except.c (maybe_splice_retval_cleanup): Check | |
1718 | current_binding_level. | |
1719 | * semantics.c (do_poplevel): Call it here. | |
1720 | * parser.c (cp_parser_compound_statement): Not here. | |
1721 | ||
1722 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1723 | ||
1724 | PR c++/53868 | |
1725 | * decl.c (cp_finish_decl): Use wrap_temporary_cleanups for | |
1726 | cleanups from set_up_extended_ref_temp. | |
1727 | (wrap_temporary_cleanups): Ignore array cleanups. | |
1728 | (initialize_local_var): Don't check for array here. | |
1729 | * cp-tree.h (BIND_EXPR_VEC_DTOR): New. | |
1730 | * init.c (build_vec_delete_1): Set it. | |
1731 | ||
1732 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1733 | ||
1734 | PR c++/66451 | |
1735 | * init.c (build_vec_delete_1): Handle throwing dtor. | |
1736 | (build_vec_init): Tell it we're in a cleanup already. | |
1737 | ||
1738 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1739 | ||
1740 | * typeck2.c (split_nonconstant_init_1): Don't cleanup the last elt. | |
1741 | (split_nonconstant_init): Adjust. | |
1742 | ||
1743 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1744 | ||
1745 | PR c++/66139 | |
1746 | PR c++/52320 | |
1747 | * constexpr.c (replace_decl): Rename from replace_result_decl. | |
1748 | * cp-tree.h (replace_decl): Declare it. | |
1749 | * cp-gimplify.c (cp_gimplify_init_expr): Call it. | |
1750 | (cp_gimplify_expr): Don't handle VEC_INIT_EXPR. | |
1751 | (cp_genericize_init, cp_genericize_init_expr) | |
1752 | (cp_genericize_target_expr): New. | |
1753 | (cp_fold_r): Call them. | |
1754 | * tree.c (build_array_copy): Add a TARGET_EXPR. | |
1755 | * typeck2.c (digest_init_r): Look through a TARGET_EXPR. | |
1756 | ||
1757 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1758 | ||
1759 | PR c++/94041 | |
1760 | * decl.c (initialize_local_var): Fix comment. | |
1761 | * init.c (build_new_1): Do stabilize array init. | |
1762 | (build_vec_init): Use TARGET_EXPR for cleanup. Initialization | |
1763 | of an element from an explicit initializer is not a | |
1764 | full-expression. | |
1765 | * tree.c (expand_vec_init_expr): Pass flags through. | |
1766 | * typeck2.c (split_nonconstant_init_1): Handle VEC_INIT_EXPR. | |
1767 | (split_nonconstant_init): Handle array cleanups. | |
1768 | * cp-tree.h: Adjust. | |
1769 | ||
1770 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1771 | ||
1772 | PR c++/94041 | |
1773 | * decl.c (check_initializer): Remove obsolete comment. | |
1774 | (wrap_cleanups_r): Don't wrap CLEANUP_EH_ONLY. | |
1775 | (initialize_local_var): Change assert to test. | |
1776 | * typeck2.c (maybe_push_temp_cleanup): New. | |
1777 | (split_nonconstant_init_1): Use it. | |
1778 | (split_nonconstant_init): Clear cleanup flags. | |
1779 | ||
1780 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1781 | ||
1782 | PR c++/92385 | |
1783 | * typeck2.c (PICFLAG_VEC_INIT): New. | |
1784 | (process_init_constructor_array): Set it. | |
1785 | (process_init_constructor): Handle it. | |
1786 | (split_nonconstant_init_1): Handle VEC_INIT_EXPR. | |
1787 | * init.c (build_vec_init): Likewise. | |
1788 | * cp-gimplify.c (cp_gimplify_expr): Factor out... | |
1789 | * tree.c (expand_vec_init_expr): ...this function. | |
1790 | (build_vec_init_elt): Handle BRACE_ENCLOSED_INITIALIZER_P. | |
1791 | (build_vec_init_expr): Likewise. | |
1792 | * constexpr.c (cxx_eval_vec_init): Likewise. | |
1793 | (reduced_constant_expression_p): Check arrays before C++20. | |
1794 | * cp-tree.h (expand_vec_init_expr): Declare. | |
1795 | ||
1796 | 2022-01-07 Jason Merrill <jason@redhat.com> | |
1797 | ||
1798 | * init.c (build_new_1): Remove preevaluation code. | |
1799 | ||
0fbefa25 GA |
1800 | 2022-01-05 Nathan Sidwell <nathan@acm.org> |
1801 | ||
1802 | * pt.c (instantiate_class_template_1): Process attribute((used)) set | |
1803 | in class's context. | |
1804 | ||
1805 | 2022-01-05 Nathan Sidwell <nathan@acm.org> | |
1806 | ||
1807 | * init.c (build_new_1): Check complain before alignment warning. | |
1808 | ||
7d11b64b GA |
1809 | 2022-01-04 Jason Merrill <jason@redhat.com> |
1810 | ||
1811 | * cp-tree.h (class releasing_vec): Add begin/end fns. | |
1812 | ||
1813 | 2022-01-04 Jason Merrill <jason@redhat.com> | |
1814 | ||
1815 | * init.c: Include -*- C++ -*- on first line. | |
1816 | ||
a4ae8c37 GA |
1817 | 2022-01-03 Marek Polacek <polacek@redhat.com> |
1818 | ||
1819 | PR c++/103758 | |
1820 | * parser.c (cp_parser_decl_specifier_seq): Replace %<decl-specifier%> | |
1821 | with %qD. | |
1822 | ||
1823 | 2022-01-03 Marek Polacek <polacek@redhat.com> | |
1824 | ||
1825 | * parser.c (make_char_string_pack): Add a cast to const unsigned | |
1826 | char *. | |
1827 | ||
1828 | 2022-01-03 Jakub Jelinek <jakub@redhat.com> | |
1829 | ||
1830 | PR c++/103600 | |
1831 | * rtti.c (get_tinfo_decl_direct): Add "non overlapping" attribute | |
1832 | to DECL_TINFO_P VAR_DECLs. | |
1833 | ||
5da23a13 GA |
1834 | 2022-01-02 Jason Merrill <jason@redhat.com> |
1835 | ||
1836 | * init.c (build_vec_init): Append the decrement to elt_init. | |
1837 | ||
1838 | 2022-01-02 Jason Merrill <jason@redhat.com> | |
1839 | ||
1840 | * decl.c (wrap_cleanups_r): Don't wrap if noexcept. | |
1841 | ||
ad41bd84 | 1842 | \f |
6123f29a | 1843 | Copyright (C) 2022 Free Software Foundation, Inc. |
ad41bd84 JM |
1844 | |
1845 | Copying and distribution of this file, with or without modification, | |
1846 | are permitted in any medium without royalty provided the copyright | |
1847 | notice and this notice are preserved. |