]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/cp/ChangeLog
* gcc.dg/compat/pr83487-1_x.c: Use -fno-common option on hppa*-*-hpux*.
[thirdparty/gcc.git] / gcc / cp / ChangeLog
CommitLineData
773c8785 12019-03-14 Jason Merrill <jason@redhat.com>
2
3 * parser.c (cp_parser_decl_specifier_seq): Support C++20
4 concept-definition syntax without 'bool'.
5
d0782a7e 62019-03-14 Jakub Jelinek <jakub@redhat.com>
7
c17b0b28 8 PR c++/89512
9 * semantics.c (finish_qualified_id_expr): Reject variable templates.
10
d0782a7e 11 PR c++/89652
12 * constexpr.c (struct constexpr_ctx): Change save_exprs type from
13 hash_set<tree> to vec<tree>.
14 (cxx_eval_call_expression): Adjust for save_exprs being a vec instead
15 of hash_set.
16 (cxx_eval_loop_expr): Likewise. Truncate the vector after each
17 removal of SAVE_EXPRs from values.
18 (cxx_eval_constant_expression) <case SAVE_EXPR>: Call safe_push
19 method on save_exprs instead of add.
20
d28a979f 212019-03-13 Jason Merrill <jason@redhat.com>
22
23 PR c++/86521 - C++17 copy elision in initialization by constructor.
24 * call.c (joust_maybe_elide_copy): New.
25 (joust): Call it.
26
e214ee76 272019-03-13 Marek Polacek <polacek@redhat.com>
28
29 PR c++/88979 - further P0634 fix for constructors.
30 * parser.c (cp_parser_decl_specifier_seq): Pass flags to
31 cp_parser_constructor_declarator_p.
32 (cp_parser_direct_declarator): Allow missing typename for constructor
33 parameters.
34 (cp_parser_constructor_declarator_p): Add FLAGS parameter. Pass it to
35 cp_parser_type_specifier.
36
3c78ad42 37 PR c++/89686 - mixing init-capture and simple-capture in lambda.
38 * parser.c (cp_parser_lambda_introducer): Give error when combining
39 init-capture and simple-capture.
40
8b953246 41 PR c++/89660 - bogus error with -Wredundant-move.
42 * typeck.c (maybe_warn_pessimizing_move): Only accept (T &) &arg
43 as the std::move's argument. Don't call convert_for_initialization
44 when warn_redundant_move isn't on.
45
4ca87658 462019-03-11 Jason Merrill <jason@redhat.com>
47
48 PR c++/86521 - wrong overload resolution with ref-qualifiers.
49 * call.c (build_user_type_conversion_1): Don't use a conversion to a
50 reference of the wrong rvalueness for direct binding.
51
f2a60d44 522019-03-11 Martin Liska <mliska@suse.cz>
53
54 * cvt.c (build_expr_type_conversion): Wrap apostrophes
55 in gcc internal format with %'.
56 * decl.c (check_no_redeclaration_friend_default_args): Likewise.
57 (grokfndecl): Likewise.
58 * name-lookup.c (do_pushtag): Likewise.
59 * pt.c (unify_parameter_deduction_failure): Likewise.
60 (unify_template_deduction_failure): Likewise.
61
2f6d557f 622019-03-11 Martin Liska <mliska@suse.cz>
63
64 * call.c (convert_arg_to_ellipsis): Wrap an option name
65 in a string format message and fix GNU coding style.
66 (build_over_call): Likewise.
67 * class.c (check_field_decl): Likewise.
68 (layout_nonempty_base_or_field): Likewise.
69 * constexpr.c (cxx_eval_loop_expr): Likewise.
70 * cvt.c (type_promotes_to): Likewise.
71 * decl.c (cxx_init_decl_processing): Likewise.
72 (mark_inline_variable): Likewise.
73 (grokdeclarator): Likewise.
74 * decl2.c (record_mangling): Likewise.
75 * error.c (maybe_warn_cpp0x): Likewise.
76 * except.c (doing_eh): Likewise.
77 * mangle.c (maybe_check_abi_tags): Likewise.
78 * parser.c (cp_parser_diagnose_invalid_type_name): Likewise.
79 (cp_parser_userdef_numeric_literal): Likewise.
80 (cp_parser_primary_expression): Likewise.
81 (cp_parser_unqualified_id): Likewise.
82 (cp_parser_pseudo_destructor_name): Likewise.
83 (cp_parser_builtin_offsetof): Likewise.
84 (cp_parser_lambda_expression): Likewise.
85 (cp_parser_lambda_introducer): Likewise.
86 (cp_parser_lambda_declarator_opt): Likewise.
87 (cp_parser_selection_statement): Likewise.
88 (cp_parser_init_statement): Likewise.
89 (cp_parser_decomposition_declaration): Likewise.
90 (cp_parser_function_specifier_opt): Likewise.
91 (cp_parser_static_assert): Likewise.
92 (cp_parser_simple_type_specifier): Likewise.
93 (cp_parser_namespace_definition): Likewise.
94 (cp_parser_using_declaration): Likewise.
95 (cp_parser_ctor_initializer_opt_and_function_body): Likewise.
96 (cp_parser_initializer_list): Likewise.
97 (cp_parser_type_parameter_key): Likewise.
98 (cp_parser_member_declaration): Likewise.
99 (cp_parser_try_block): Likewise.
100 (cp_parser_std_attribute_spec): Likewise.
101 (cp_parser_requires_clause_opt): Likewise.
102 * pt.c (check_template_variable): Likewise.
103 (check_default_tmpl_args): Likewise.
104 (push_tinst_level_loc): Likewise.
105 (instantiate_pending_templates): Likewise.
106 (invalid_nontype_parm_type_p): Likewise.
107 * repo.c (get_base_filename): Likewise.
108 * rtti.c (typeid_ok_p): Likewise.
109 (build_dynamic_cast_1): Likewise.
110 * tree.c (maybe_warn_parm_abi): Likewise.
111
29005d9c 1122019-03-08 Jakub Jelinek <jakub@redhat.com>
113
000969f9 114 PR other/80058
115 * parser.c (cp_parser_template_declaration_after_parameters): Avoid
116 one space before " at the end of line and another after " on another
117 line in a string literal.
118
94a62c5a 119 PR tree-optimization/89550
120 * semantics.c (maybe_convert_cond): Only set TREE_NO_WARNING if
121 warning_at returned true.
122 * decl2.c (c_parse_final_cleanups): Likewise.
123 * typeck.c (convert_for_assignment): Likewise.
124 * decl.c (finish_function): Likewise.
125
222c113b 126 PR c++/89585
127 * parser.c (cp_parser_asm_definition): Just warn instead of error
128 on volatile qualifier outside of function body.
129
92651efb 130 PR c++/89599
131 * constexpr.c (potential_constant_expression_1): Reject
132 REINTERPRET_CAST_P NOP_EXPRs.
133
29005d9c 134 PR c++/89622
135 * call.c (joust): Call print_z_candidate only if pedwarn returned
136 true.
137
bddb19c4 1382019-03-07 Jason Merrill <jason@redhat.com>
139
84982f0e 140 PR c++/88123 - lambda and using-directive.
141 * name-lookup.c (op_unqualified_lookup)
142 (maybe_save_operator_binding, discard_operator_bindings)
143 (push_operator_bindings): New.
144 * typeck.c (build_x_binary_op, build_x_unary_op): Call
145 maybe_save_operator_binding.
146 * decl.c (start_preparsed_function): Call push_operator_bindings.
147 * tree.c (cp_free_lang_data): Call discard_operator_bindings.
148
bddb19c4 149 PR c++/88820 - ICE with CTAD and member template used in DMI.
150 * pt.c (do_class_deduction): Handle parm used as its own arg.
151
02a7fc59 1522019-03-07 Jakub Jelinek <jakub@redhat.com>
153
154 PR c++/89585
155 * parser.c (cp_parser_asm_definition): Parse asm qualifiers even
156 at toplevel, but diagnose them.
157
bc17f5fd 1582019-03-06 Jason Merrill <jason@redhat.com>
159
160 PR c++/89381 - implicit copy and using-declaration.
161 * class.c (classtype_has_move_assign_or_move_ctor_p): Don't consider
162 op= brought in by a using-declaration.
163
aa49bda0 1642019-03-06 Jakub Jelinek <jakub@redhat.com>
165
166 PR c++/87148
167 * init.c (build_value_init_noctor): Ignore flexible array members.
168
02daf5d2 1692019-03-06 Jason Merrill <jason@redhat.com>
170
171 PR c++/89576 - if constexpr of lambda capture.
172 * semantics.c (maybe_convert_cond): Do convert a non-dependent
173 condition in a template.
174 * typeck.c (condition_conversion): Handle being called in a
175 template.
176
55d0cc00 1772019-03-06 Marek Polacek <polacek@redhat.com>
178
179 PR c++/87378 - bogus -Wredundant-move warning.
180 * typeck.c (maybe_warn_pessimizing_move): See if the maybe-rvalue
181 overload resolution would actually succeed.
182
cd5a9ed1 1832019-03-05 Jason Merrill <jason@redhat.com>
184
185 * class.c (is_really_empty_class): Add ignore_vptr parm.
186 (trivial_default_constructor_is_constexpr): Pass it.
187 * call.c (build_over_call): Pass it.
188 * constexpr.c (cxx_eval_constant_expression): Pass it instead of
189 checking TYPE_POLYMORPHIC_P.
190 (cxx_eval_component_reference, potential_constant_expression_1):
191 Pass it.
192 * cp-gimplify.c (simple_empty_class_p): Pass it.
193 * init.c (expand_aggr_init_1): Pass it.
194
1751c288 1952019-03-04 Paolo Carlini <paolo.carlini@oracle.com>
196
197 PR c++/84605
198 * parser.c (cp_parser_class_head): Reject TYPE_BEING_DEFINED too.
199
10599713 2002019-03-04 Jakub Jelinek <jakub@redhat.com>
201
202 PR c++/71446
203 * call.c (field_in_pset): New function.
204 (build_aggr_conv): Handle CONSTRUCTOR_IS_DESIGNATED_INIT correctly.
205
73e3d2ee 2062019-03-02 Jakub Jelinek <jakub@redhat.com>
207
208 PR c++/71446
209 * cp-tree.h (CONSTRUCTOR_IS_DESIGNATED_INIT): Define.
210 * parser.c (cp_parser_braced_list): Adjust cp_parser_initializer_list
211 caller, set CONSTRUCTOR_IS_DESIGNATED_INIT.
212 (cp_parser_initializer_list): Add designated parameter, set *designated
213 to a bool whether any designators were parsed.
214 * decl.c (reshape_init): Copy over CONSTRUCTOR_IS_DESIGNATED_INIT if
215 needed.
216 * pt.c (tsubst_copy_and_build): Likewise.
217 * call.c (implicit_conversion): If CONSTRUCTOR_IS_DESIGNATED_INIT,
218 don't call build_list_conv, nor build_complex_conv, nor attempt to
219 convert a single element initializer to scalar.
220
f409a882 2212019-03-01 Marek Polacek <polacek@redhat.com>
222
ae8e3cb6 223 PR c++/89537 - missing location for error with non-static member fn.
224 * call.c (resolve_args): Use EXPR_LOCATION.
225 * typeck.c (build_class_member_access_expr): Use input_location.
226
f409a882 227 PR c++/89532 - ICE with incomplete type in decltype.
228 * semantics.c (finish_compound_literal): Return error_mark_node
229 if digest_init_flags returns error_mark_node.
230
b279a142 2312019-03-01 Jakub Jelinek <jakub@redhat.com>
232
233 Implement P1002R1, Try-catch blocks in constexpr functions
234 PR c++/89513
235 * parser.c (cp_parser_ctor_initializer_opt_and_function_body):
236 Diagnose constexpr ctor or function with function-try-block with
237 pedwarn for c++17 and earlier. Formatting fix.
238 (cp_parser_try_block): Use pedwarn instead of error and only for
239 c++17 and earlier when try block appears in constexpr function.
240 * constexpr.c (build_constexpr_constructor_member_initializers):
241 Handle TRY_BLOCK here instead of erroring on it.
242
c7110ca7 2432019-02-28 Jason Merrill <jason@redhat.com>
244
bb019931 245 PR c++/88183 - ICE with .* fold-expression.
246 * pt.c (fold_expression) [DOTSTAR_EXPR]: Remove special handling.
247
9b4cf3ba 248 PR c++/86969 - ICE with constexpr if and recursive generic lambdas.
249 * class.c, lambda.c, pt.c: Revert earlier change.
250 * lambda.c (add_capture): Don't special-case capture of dependent
251 VLA.
252
c7110ca7 253 * name-lookup.c (print_binding_level): Print this_entity.
254
90c2137c 2552019-02-27 Marek Polacek <polacek@redhat.com>
256
257 PR c++/88857 - ICE with value-initialization of argument in template.
258 * call.c (convert_like_real): Don't call build_value_init in template.
259
9ecd4044 2602019-02-27 Jason Merrill <jason@redhat.com>
261
262 PR c++/86969 - ICE with constexpr if and recursive generic lambdas.
263 * semantics.c (process_outer_var_ref): Do capture dependent vars.
264 * class.c (finish_struct): Only add TAG_DEFN if T is in
265 current_function_decl.
266 * lambda.c (vla_capture_type): Force the capture type out into the
267 lambda's enclosing function.
268 (add_capture): Pass in the lambda.
269 * pt.c (tsubst_lambda_expr): complete_type a VLA capture type.
270
7304edd1 2712019-02-27 Marek Polacek <polacek@redhat.com>
272
273 PR c++/89511 - ICE with using-declaration and unscoped enumerator.
274 * parser.c (cp_parser_using_declaration): For an unscoped enum
275 only use its context if it's not a function declaration.
276
c9f30cbb 2772019-02-27 Paolo Carlini <paolo.carlini@oracle.com>
278
279 PR c++/89488
280 * method.c (process_subob_fn): When maybe_instantiate_noexcept
281 returns false don't call merge_exception_specifiers.
282
2832019-02-27 Paolo Carlini <paolo.carlini@oracle.com>
284
285 PR c++/88987
286 * parser.c (cp_parser_noexcept_specification_opt): Return NULL_TREE
287 for a non-constant parsed expression.
288
a165fd90 2892019-02-26 Jakub Jelinek <jakub@redhat.com>
290
291 PR c++/89481
292 * constexpr.c (cxx_eval_store_expression): When changing active union
293 member, set no_zero_init.
294
c005651d 2952019-02-23 Marek Polacek <polacek@redhat.com>
296
297 PR c++/88294 - ICE with non-constant noexcept-specifier.
298 * pt.c (maybe_instantiate_noexcept): Set up the list of local
299 specializations. Set current_class_{ptr,ref}.
300
689cc9b6 3012019-02-22 David Malcolm <dmalcolm@redhat.com>
302
303 PR c++/89390
304 * parser.c (cp_parser_unqualified_id): Capture and use locations
305 for destructors.
306
e7652833 3072019-02-22 Marek Polacek <polacek@redhat.com>
308
309 PR c++/89420 - ICE with CAST_EXPR in explicit-specifier.
310 * decl.c (build_explicit_specifier): Don't check
311 processing_template_decl. Call instantiation_dependent_expression_p
312 instead of value_dependent_expression_p. Call
313 instantiate_non_dependent_expr_sfinae before
314 build_converted_constant_expr instead of calling
315 instantiate_non_dependent_expr after it. Add
316 processing_template_decl_sentinel.
317
51391c1d 3182019-02-22 Thomas Schwinge <thomas@codesourcery.com>
319
320 * parser.c (cp_parser_oacc_simple_clause): Remove parser formal
321 parameter, move loc formal parameter to the front. Adjust all
322 users.
323 (cp_parser_oacc_shape_clause): Add loc formal parameter. Adjust
324 all users.
325
b6700c1a 3262019-02-21 Jason Merrill <jason@redhat.com>
327
532cca3f 328 PR c++/87685 - generic lambda 'this' capture error.
329 * lambda.c (lambda_expr_this_capture): Change add_capture_p to int.
330 (maybe_generic_this_capture): Pass -1.
331
a7ea8f96 332 PR c++/88394 - ICE with VLA init-capture.
333 * lambda.c (is_normal_capture_proxy): Check DECL_CAPTURED_VARIABLE.
334
e2d4b8be 335 PR c++/88869 - C++17 ICE with CTAD and explicit specialization.
336 * pt.c (do_class_deduction): Don't include explicit specialization
337 args in outer_args.
338
b6700c1a 339 PR c++/89422 - ICE with -g and lambda in default arg in template.
340 * pt.c (tsubst_function_decl): SET_DECL_FRIEND_CONTEXT sooner.
341
147a31b6 3422019-02-21 Jason Merrill <jason@redhat.com>
343
344 PR c++/88419 - C++17 ICE with class template arg deduction.
345 * pt.c (make_template_placeholder): Set TYPE_CANONICAL after
346 CLASS_PLACEHOLDER_TEMPLATE.
347
02d7a132 3482019-02-21 Jakub Jelinek <jakub@redhat.com>
349
350 PR c++/89285
351 * constexpr.c (struct constexpr_fundef): Add parms and result members.
352 (retrieve_constexpr_fundef): Adjust for the above change.
353 (register_constexpr_fundef): Save constexpr body with copy_fn,
354 temporarily set DECL_CONTEXT on DECL_RESULT before that.
355 (get_fundef_copy): Change FUN argument to FUNDEF with
356 constexpr_fundef * type, grab body and parms/result out of
357 constexpr_fundef struct and temporarily change it for copy_fn calls
358 too.
359 (cxx_eval_builtin_function_call): For __builtin_FUNCTION temporarily
360 adjust current_function_decl from ctx->call context. Test
361 !potential_constant_expression instead of !is_constant_expression.
362 (cxx_bind_parameters_in_call): Grab parameters from new_call. Undo
363 convert_for_arg_passing changes for TREE_ADDRESSABLE type passing.
364 (cxx_eval_call_expression): Adjust get_fundef_copy caller.
365 (cxx_eval_conditional_expression): For IF_STMT, allow then or else
366 operands to be NULL.
367 (label_matches): Handle BREAK_STMT and CONTINUE_STMT.
368 (cxx_eval_loop_expr): Add support for FOR_STMT, WHILE_STMT and DO_STMT.
369 (cxx_eval_switch_expr): Add support for SWITCH_STMT.
370 (cxx_eval_constant_expression): Handle IF_STMT, FOR_STMT, WHILE_STMT,
371 DO_STMT, CONTINUE_STMT, SWITCH_STMT, BREAK_STMT and CONTINUE_STMT.
372 For SIZEOF_EXPR, recurse on the result of fold_sizeof_expr. Ignore
373 DECL_EXPR with USING_DECL operand.
374 * lambda.c (maybe_add_lambda_conv_op): Build thisarg using
375 build_int_cst to make it a valid constant expression.
376
dcd8f919 3772019-02-20 Jason Merrill <jason@redhat.com>
378
379 PR c++/88690 - C++17 ICE with empty base in aggregate.
380 * typeck2.c (process_init_constructor_record): Skip trivial
381 initialization of an empty base.
382
309e5f71 3832019-02-21 Richard Biener <rguenther@suse.de>
384
385 PR middle-end/89392
386 * vtable-class-hierarchy.c (vtv_generate_init_routine): Do not
387 make symtab process new functions here.
388
4e60ed29 3892019-02-20 Jason Merrill <jason@redhat.com>
390
391 PR c++/87921 - wrong error with inline static data member.
392 * decl2.c (finish_static_data_member_decl): Don't set DECL_IN_AGGR_P
393 for a non-template inline variable. Do nothing for an
394 already-instantiated variable.
395 (c_parse_final_cleanups): Check DECL_IN_AGGR_P without
396 DECL_INLINE_VAR_P.
397 * decl.c (check_initializer): Likewise.
398 (make_rtl_for_nonlocal_decl): Likewise.
399 * pt.c (instantiate_decl): Likewise.
400 * typeck2.c (store_init_value): Likewise.
401
b47245f1 4022019-02-20 Jakub Jelinek <jakub@redhat.com>
403
0c3f2aa9 404 PR c++/89403
405 * decl2.c (c_parse_final_cleanups): Move TREE_ASM_WRITTEN setting
406 for flag_syntax_only from here...
407 * semantics.c (expand_or_defer_fn_1): ... here.
408
02dc6028 409 PR c++/89405
410 * decl.c (maybe_commonize_var): When clearing TREE_PUBLIC and
411 DECL_COMMON, set DECL_INTERFACE_KNOWN.
412
b47245f1 413 PR c++/89336
414 * constexpr.c (cxx_eval_store_expression): Diagnose changing of active
415 union member for -std=c++17 and earlier.
416
af48cea2 4172019-02-19 Jason Merrill <jason@redhat.com>
418
419 PR c++/87513 - 'sorry' mangling PMF template-id.
420 * mangle.c (write_expression): Handle SCOPE_REF to BASELINK.
421
fd8a4665 4222019-02-19 Jason Merrill <jason@redhat.com>
423
424 PR c++/88380 - wrong-code with flexible array and NSDMI.
425 * typeck2.c (process_init_constructor_record): Skip flexarrays.
426
53ceddc9 4272019-02-20 will wray <wjwray@gmail.com>
428
429 PR c++/88572 - wrong handling of braces on scalar init.
430 * decl.c (reshape_init_r): Allow braces around scalar initializer
431 within aggregate init. Reject double braced-init of scalar
432 variable.
433
ab0fbe16 4342019-02-20 Paolo Carlini <paolo.carlini@oracle.com>
435
436 PR c++/84536
437 * pt.c (tsubst_init): Diagnose an initializer expanding to an
438 empty list of expressions; tweak wrt dependent types.
439 (regenerate_decl_from_template): For VAR_DECLs call tsubst_init
440 instead of tsubst_expr.
441
ce7f22f1 4422019-02-19 Jason Merrill <jason@redhat.com>
443
444 PR c++/88368 - wrong 'use of deleted function'
445 * method.c (walk_field_subobs): Remember errors from get_nsdmi.
446 (get_defaulted_eh_spec): Call push_tinst_level.
447 * pt.c (maybe_instantiate_noexcept): Keep error_mark_node.
448 * typeck2.c (merge_exception_specifiers): Handle error_mark_node.
449
d572a4c3 4502019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
451
452 PR c/87924
453 * parser.c (cp_parser_oacc_clause_wait): Add representation of wait
454 clause without argument as 'wait (GOMP_ASYNC_NOVAL)', adjust comments.
455
31358ed0 4562019-02-19 Jakub Jelinek <jakub@redhat.com>
457
5ebe5c44 458 PR c++/89387
459 * lambda.c (maybe_generic_this_capture): Don't check
460 DECL_NONSTATIC_MEMBER_FUNCTION_P on USING_DECLs.
461
fcea8c4d 462 PR c++/89391
463 * typeck.c (build_reinterpret_cast_1): Don't handle void to
464 && conversion go through build_target_expr_with_type.
465
31358ed0 466 PR c++/89390
467 * error.c (qualified_name_lookup_error): Only call
468 suggest_alternative_in_scoped_enum if name is IDENTIFIER_NODE.
469
25694c85 4702019-02-19 Tom Honermann <tom@honermann.net>
471
472 * name-lookup.c (get_std_name_hint): Added u8string as a name hint.
473
a1e1b603 4742019-02-18 Jason Merrill <jason@redhat.com>
475
6aaacaf1 476 PR c++/89336 - multiple stores in constexpr stmt.
477 * constexpr.c (cxx_eval_store_expression): Preevaluate scalar or
478 assigned value.
479
f6347d1a 480 * pt.c (check_explicit_specialization): If the declarator is a
481 template-id, only check whether the arguments are dependent.
482
a1e1b603 483 Improve duplicate [[likely]] diagnostic.
484 * parser.c (cp_parser_statement): Make attrs_loc a range. Pass it
485 to process_stmt_hotness_attribute.
486 * cp-gimplify.c (process_stmt_hotness_attribute): Take attrs_loc.
487 (genericize_if_stmt): Use likely/unlikely instead of predictor_name.
488
33e6651d 4892019-02-17 Marek Polacek <polacek@redhat.com>
490
491 PR c++/89217 - ICE with list-initialization in range-based for loop.
492 * constexpr.c (unshare_constructor): No longer static.
493 * cp-tree.h (unshare_constructor): Declare.
494 * semantics.c (finish_compound_literal): When dealing with a
495 non-dependent expression in a template, return the original
496 expression. Pass LOOKUP_NO_NARROWING to digest_init_flags.
497
3a860627 4982019-02-13 Marek Polacek <polacek@redhat.com>
499
500 PR c++/89297 - ICE with OVERLOAD in template.
501 * semantics.c (finish_compound_literal): Call
502 instantiate_non_dependent_expr_sfinae.
503
601c59dd 5042019-02-13 Alexandre Oliva <aoliva@redhat.com>
505
40563cf7 506 PR c++/86379
507 * cp-tree.h (USING_DECL_SCOPE): Use result rather than type.
508 * name-lookup.c (strip_using_decl): Use USING_DECL_SCOPE.
509 * search.c (protected_accessible_p): Follow USING_DECL_DECLS.
510 (shared_member_p): Likewise.
511 (lookup_member): Likewise.
512 * decl.c (grok_special_member_properties): Skip USING_DECLs.
513 * semantics.c (finish_omp_declare_simd_methods): Likewise.
514 (finish_qualified_id_expr): Do not call shared_member_p with
515 a dependent expr.
516
601c59dd 517 PR c++/87322
518 * pt.c (tsubst_lambda_expr): Avoid duplicate tsubsting.
519 Move cp_evaluated resetting before signature tsubsting.
520 (gen_elem_of_pack_expansion_instantiation): Separate local
521 specializations per index.
522
f2da1a76 5232019-02-13 David Malcolm <dmalcolm@redhat.com>
524
525 PR c++/89036
526 * class.c (add_method): Drop destructor assertion.
527
64bd49fa 5282019-02-13 Paolo Carlini <paolo.carlini@oracle.com>
529
530 PR c++/88986
531 * decl.c (make_typename_type): Allow for TYPE_PACK_EXPANSION as
532 context (the first argument).
533 * pt.c (tsubst, case TYPENAME_TYPE): Handle TYPE_PACK_EXPANSION
534 as context.
535
c8e19553 5362019-02-12 Jason Merrill <jason@redhat.com>
537
538 PR c++/89144 - link error with constexpr initializer_list.
539 * call.c (convert_like_real) [ck_list]: Don't allocate a temporary
540 array for an empty list.
541 * typeck2.c (store_init_value): Don't use cxx_constant_init in a
542 template.
543
33fe677e 5442019-02-11 Jason Merrill <jason@redhat.com>
545
546 PR c++/89241 - ICE with __func__ in lambda in template.
547 * pt.c (enclosing_instantiation_of): Also check
548 instantiated_lambda_fn_p for the template context.
549
44263306 5502019-02-11 Marek Polacek <polacek@redhat.com>
551
552 PR c++/89212 - ICE converting nullptr to pointer-to-member-function.
553 * pt.c (tsubst_copy_and_build) <case CONSTRUCTOR>: Return early for
554 null member pointer value.
555
61b94553 5562019-02-11 Jakub Jelinek <jakub@redhat.com>
557
558 PR c++/88977
559 * pt.c (convert_nontype_argument): Pass true as manifestly_const_eval
560 to maybe_constant_value calls.
561
b10193f4 5622019-02-11 Marek Polacek <polacek@redhat.com>
563
564 * typeck2.c (digest_init_r): Remove commented code.
565
08acf739 5662019-02-11 Martin Sebor <msebor@redhat.com>
567
568 PR c++/87996
569 * decl.c (compute_array_index_type_loc): Preserve signed sizes
570 for diagnostics. Call valid_array_size_p instead of error.
571 * init.c (build_new_1): Compute size for diagnostic. Call
572 invalid_array_size_error
573 (build_new): Call valid_array_size_p instead of error.
574
939d44f3 5752019-02-07 Alexandre Oliva <aoliva@redhat.com>
576
577 PR c++/86218
578 * call.c (compare_ics): Deal with ck_aggr in either cs.
579
c92ab8d4 5802019-02-06 David Malcolm <dmalcolm@redhat.com>
581
582 PR c++/71302
583 * call.c (get_location_for_expr_unwinding_for_system_header): New
584 function.
585 (conversion_null_warnings): Use it when getting locations for
586 EXPR, effectively adding a call to
587 get_location_for_expr_unwinding_for_system_header for
588 -Wconversion-null and making use of EXPR_LOCATION for
589 -Wzero-as-null-pointer-constant.
590
b5a6b127 5912019-02-05 Jakub Jelinek <jakub@redhat.com>
592
593 PR c++/89187
594 * optimize.c (maybe_thunk_body): Clear TREE_ADDRESSABLE on
595 PARM_DECLs of the thunk.
596 * lambda.c (maybe_add_lambda_conv_op): Likewise.
597
74ce2ebb 5982019-02-05 Marek Polacek <polacek@redhat.com>
599
600 PR c++/89158 - by-value capture of constexpr variable broken.
601 * call.c (convert_like_real) <case ck_user>: Call mark_exp_read
602 instead of mark_rvalue_use.
603
9ca54fa1 6042019-02-05 Alexandre Oliva <aoliva@redhat.com>
605
606 PR c++/87770
607 * pt.c (instantiates_primary_template_p): New.
608 (type_dependent_expression_p): Use it.
609
c758dd5a 6102019-02-01 Jason Merrill <jason@redhat.com>
611
612 PR c++/88761 - ICE with reference capture of constant.
613 * lambda.c (mark_const_cap_r): Do walk subtrees of DECL_EXPR for
614 non-proxy decls.
615
bdb43276 6162019-02-01 Marek Polacek <polacek@redhat.com>
617
618 PR c++/88325 - ICE with invalid out-of-line template member definition.
619 * parser.c (cp_parser_class_name): Don't call make_typename_type
620 for overloads.
621
5ab8180e 6222019-02-01 Jakub Jelinek <jakub@redhat.com>
623
624 PR c++/87175
625 * parser.c (cp_parser_gnu_attributes_opt): Set ok to false
626 if require_open failed.
627
c8f861a0 6282019-01-31 Marek Polacek <polacek@redhat.com>
629
630 PR c++/89083, c++/80864 - ICE with list initialization in template.
631 * constexpr.c (adjust_temp_type): Use copy_node and change the type
632 instead of using build_constructor.
633 * decl.c (reshape_init_r): Don't reshape a digested initializer.
634 Return the initializer for COMPOUND_LITERAL_P.
635
f1329be6 636 PR c++/88983 - ICE with switch in constexpr function.
637 * constexpr.c (cxx_eval_switch_expr): Use SWITCH_COND and SWITCH_BODY.
638 (cxx_eval_constant_expression) <case COND_EXPR>: Don't look for the
639 label in the else branch if we found it in the then branch.
640
8c28f0ef 6412019-01-30 Jason Merrill <jason@redhat.com>
642
643 PR c++/88752 - ICE with lambda and constexpr if.
644 * cp-tree.h (LAMBDA_EXPR_INSTANTIATED): New.
645 * pt.c (tsubst_lambda_expr): Set it.
646 (instantiated_lambda_fn_p): Check it.
647 (enclosing_instantiation_of): Use it.
648
abb9ae66 6492019-01-31 Jakub Jelinek <jakub@redhat.com>
650
651 PR libstdc++/88170
652 * cxx-pretty-print.c (pp_cxx_enumeration_constant): Print always as
653 a C cast in pp_c_flag_gnu_v3 mode.
654
9b0e9786 6552019-01-30 Jakub Jelinek <jakub@redhat.com>
656
657 PR c++/88988
658 * lambda.c (is_capture_proxy): Don't return true for
659 DECL_OMP_PRIVATIZED_MEMBER artificial vars.
660
7066144a 6612019-01-30 Marek Polacek <polacek@redhat.com>
662
663 PR c++/89119 - ICE with value-initialization in template.
664 * pt.c (tsubst_copy_and_build): Handle RANGE_EXPR.
665
64e3499e 6662019-01-29 Jason Merrill <jason@redhat.com>
667
668 PR c++/86943 - wrong code converting lambda to function pointer.
669 * lambda.c (maybe_add_lambda_conv_op): Use a template-id in the
670 call. Only forward parms for decltype.
671 * pt.c (tsubst_copy_and_build) [CALL_EXPR]: Handle CALL_FROM_THUNK_P
672 specially.
673 * typeck.c (check_return_expr): Don't mess with a thunk call.
674
107cba11 6752019-01-28 Jason Merrill <jason@redhat.com>
676
677 PR c++/89089 - ICE with [[no_unique_address]].
678 PR c++/88865 - wrong layout with [[no_unique_address]].
679 * class.c (check_field_decls): A potentially-overlapping field makes
680 the class non-layout-POD, but not non-empty.
681 (end_of_class): Always consider empty data members.
682 (layout_class_type): Set DECL_SIZE for empty fields.
683
44da2a17 6842019-01-28 Marek Polacek <polacek@redhat.com>
685
686 PR c++/88358 - name wrongly treated as type.
687 * parser.c (cp_parser_direct_declarator): Don't assume a qualified-id
688 in parameter-list is a type if the function's declarator-id is not
689 qualified.
690
1d41b42f 6912019-01-27 Marek Polacek <polacek@redhat.com>
692
b7feeace 693 PR c++/88815 - narrowing conversion lost in decltype.
694 PR c++/78244 - narrowing conversion in template not detected.
695 * cp-tree.h (CONSTRUCTOR_IS_DEPENDENT): New.
696 * pt.c (instantiation_dependent_r): Consider a CONSTRUCTOR with
697 CONSTRUCTOR_IS_DEPENDENT instantiation-dependent.
698 * semantics.c (finish_compound_literal): When the compound literal
699 isn't instantiation-dependent and the type isn't type-dependent,
700 fall back to the normal processing. Set CONSTRUCTOR_IS_DEPENDENT.
701
1d41b42f 702 PR c++/89024 - ICE with incomplete enum type.
703 * call.c (standard_conversion): When converting an
704 ARITHMETIC_TYPE_P to an incomplete type, return NULL.
705
837ddebd 7062019-01-25 Paolo Carlini <paolo.carlini@oracle.com>
707
708 PR c++/88969
709 * call.c (build_op_delete_call): Implement 7.6.2.5/(10.1).
710 * decl2.c (coerce_delete_type): Use build_pointer_type instead
711 of TYPE_POINTER_TO.
712
8c89c5fc 7132019-01-24 Jason Merrill <jason@redhat.com>
714
715 PR c++/89001 - mangling of reference temporaries
716 * cp-tree.h (struct saved_scope): Add ref_temp_count.
717 (current_ref_temp_count): New macro.
718 * mangle.c (mangle_ref_init_variable): Use it.
719 * typeck2.c (store_init_value): Clear it.
720 * call.c (make_temporary_var_for_ref_to_temp): Copy public and
721 comdat.
722
b5e76680 7232019-01-24 Jakub Jelinek <jakub@redhat.com>
724
725 PR c++/88976
726 * semantics.c (finish_omp_cancel): Diagnose more than one if
727 on #pragma omp cancel with different modifiers. Use
728 maybe_convert_cond when not in template or build_x_binary_op
729 otherwise.
730
dffbcba8 7312019-01-23 Marek Polacek <polacek@redhat.com>
732
733 PR c++/88757 - qualified name treated wrongly as type.
734 * parser.c (cp_parser_direct_declarator): Don't treat qualified-ids
735 in parameter-list as types if name lookup for declarator-id didn't
736 find one or more function templates.
737
1f03c410 7382019-01-23 Jakub Jelinek <jakub@redhat.com>
739
8090d51c 740 PR c/44715
741 * cp-gimplify.c (genericize_cp_loop): Call begin_bc_block only
742 after genericizing cond and incr expressions.
743
1f03c410 744 PR c++/88984
745 * cp-gimplify.c (genericize_switch_stmt): Move cond genericization
746 before the begin_bc_block call.
747
48c03f15 7482019-01-21 Jason Merrill <jason@redhat.com>
749
750 PR c++/87893 - constexpr ctor ICE on ARM.
751 PR c++/88293 - ICE with comma expression.
752 * constexpr.c (initialized_type): Don't shortcut non-void type.
753 Handle COMPOUND_EXPR.
754 (cxx_eval_outermost_constant_expr): Return early for void type.
755
99bf4b63 7562019-01-21 Jakub Jelinek <jakub@redhat.com>
757
77fe9474 758 PR c++/88949
759 * optimize.c (cxx_copy_decl): New function.
760 (clone_body): Use it instead of copy_decl_no_change.
761
99bf4b63 762 PR sanitizer/88901
763 * typeck.c (cp_build_binary_op): Don't instrument
764 SANITIZE_POINTER_COMPARE if processing_template_decl.
765 (pointer_diff): Similarly for SANITIZE_POINTER_SUBTRACT.
766
ecd2d842 7672019-01-18 Jason Merrill <jason@redhat.com>
768
769 PR c++/88875 - error with explicit list constructor.
770 * call.c (reference_binding): Don't modify EXPR. Set
771 need_temporary_p on the ck_user conversion for a temporary.
772 (convert_like_real): Check it.
773
6d4e8a95 7742019-01-18 H.J. Lu <hongjiu.lu@intel.com>
775
776 PR c/51628
777 PR c/88664
778 * call.c (convert_for_arg_passing): Upate the
779 warn_for_address_or_pointer_of_packed_member call.
780 * typeck.c (convert_for_assignment): Likewise.
781
9d3c4130 7822019-01-17 Jason Merrill <jason@redhat.com>
783
bc9c0483 784 PR c++/86205 - ICE with ?: of throw and template-id.
785 * pt.c (resolve_nondeduced_context_or_error): Split out from...
786 * typeck.c (decay_conversion): ...here.
787 * call.c (build_conditional_expr_1): Use it.
788
9d3c4130 789 PR c++/86740, ICE with constexpr if and nested generic lambdas.
790 * tree.c (cp_walk_subtrees): Handle LAMBDA_EXPR.
791
0f910e62 7922019-01-17 Paolo Carlini <paolo.carlini@oracle.com>
793
794 * decl.c (grokdeclarator): Use typespec_loc in error messages
795 about 'auto' and trailing return type.
796
098cc8f0 7972019-01-17 David Malcolm <dmalcolm@redhat.com>
798
799 PR c++/88699
800 * class.c (add_method): Don't use DECL_DESTRUCTOR_P on
801 USING_DECLs.
802
a395125a 8032019-01-17 Nathan Sidwell <nathan@acm.org>
804
805 PR c++/86610
806 * semantics.c (process_outer_var_ref): Only skip dependent types
807 in templates.
808
5461905d 8092019-01-17 Alexandre Oliva <aoliva@redhat.com>
810
c5f929a4 811 PR c++/87768
812 * cp-tree.h (saved_scope): Add suppress_location_wrappers.
813 * name-lookup.c (do_push_to_top_level): Save and reset it.
814 (do_pop_from_top_level): Restore it.
815
f97941b7 816 PR c++/86648
817 * pt.c (make_template_placeholder): Use auto_identifier.
818 (is_auto): Drop CLASS_PLACEHOLDER_TEMPLATE test.
819 * error.c (dump_type): Handle template placeholders.
820 * cxx-pretty-print.c (pp_cx_unqualified_id): Likewise.
821
5461905d 822 PR c++/88146
823 * cvt.c (convert_to_void): Handle all cdtor calls as if
824 returning void.
825
b92cc3ed 8262019-01-16 Paolo Carlini <paolo.carlini@oracle.com>
827
828 * decl.c (grokdeclarator): Use locations[ds_storage_class] in
829 error messages about ill-formed uses of mutable.
830
9fc2172c 8312019-01-16 Marek Polacek <polacek@redhat.com>
832
833 PR c++/78244 - narrowing conversion in template not detected.
834 * call.c (perform_implicit_conversion_flags): Set
835 IMPLICIT_CONV_EXPR_BRACED_INIT.
836 * cp-tree.h (IMPLICIT_CONV_EXPR_BRACED_INIT): New.
837 * pt.c (tsubst_copy_and_build): Use it.
838
727d210b 8392019-01-15 David Malcolm <dmalcolm@redhat.com>
840
841 PR c++/88795
842 * pt.c (build_deduction_guide): Bail out if tsubst_arg_types
843 fails.
844
39a51021 8452019-01-15 Paolo Carlini <paolo.carlini@oracle.com>
846
847 * decl.c (start_decl): Improve error location.
848 * decl2.c (grokfield): Likewise.
849
8502019-01-15 Paolo Carlini <paolo.carlini@oracle.com>
851
852 * decl.c (grokdeclarator): Move further up the location_t loc
853 declaration and use the location when building a TYPE_DECL for
854 a typedef name.
855 * decl2.c (grokbitfield): Use DECL_SOURCE_LOCATION in the error
856 about an ill-formed bit-field as typedef.
857
affca1c8 8582019-01-14 Marek Polacek <polacek@redhat.com>
859
860 PR c++/88830 - ICE with abstract class.
861 * decl2.c (maybe_emit_vtables): Check CLASSTYPE_LAZY_DESTRUCTOR.
862 Fix formatting.
863
9f8a8956 864 PR c++/88825 - ICE with bogus function return type deduction.
865 * typeck.c (can_do_nrvo_p): Check error_mark_node.
866
82362779 8672019-01-14 Tom Honermann <tom@honermann.net>
868
869 Implement P0482R5, char8_t: A type for UTF-8 characters and strings
870 * cvt.c (type_promotes_to): Handle char8_t promotion.
871 * decl.c (grokdeclarator): Handle invalid type specifier
872 combinations involving char8_t.
873 * lex.c (init_reswords): Add char8_t as a reserved word.
874 * mangle.c (write_builtin_type): Add name mangling for char8_t (Du).
875 * parser.c (cp_keyword_starts_decl_specifier_p)
876 (cp_parser_simple_type_specifier): Recognize char8_t as a simple
877 type specifier.
878 (cp_parser_string_literal): Use char8_array_type_node for the type
879 of CPP_UTF8STRING.
880 (cp_parser_set_decl_spec_type): Tolerate char8_t typedefs in system
881 headers.
882 * rtti.c (emit_support_tinfos): type_info support for char8_t.
883 * tree.c (char_type_p): Recognize char8_t as a character type.
884 * typeck.c (string_conv_p): Handle conversions of u8 string
885 literals of char8_t type.
886 (check_literal_operator_args): Handle UDLs with u8 string literals
887 of char8_t type.
888 * typeck2.c (ordinary_char_type_p): New.
889 (digest_init_r): Disallow initializing a char array with a u8 string
890 literal.
891
bf4eb32b 8922019-01-14 Martin Liska <mliska@suse.cz>
893
894 PR gcov-profile/88263
895 * decl2.c (get_tls_wrapper_fn): Use DECL_SOURCE_LOCATION
896 as location of the TLS wrapper.
897
2fa582a9 8982019-01-12 Paolo Carlini <paolo.carlini@oracle.com>
899
900 * decl.c (cp_finish_decl): Improve error location.
901 * decl2.c (grokfield): Likewise, improve two locations.
902
0b5957b9 9032019-01-11 Marek Polacek <polacek@redhat.com>
904
905 PR c++/88692, c++/87882 - -Wredundant-move false positive with *this.
906 * typeck.c (maybe_warn_pessimizing_move): Return if ARG isn't
907 ADDR_EXPR.
908
d07c152b 9092019-01-11 Jason Merrill <jason@redhat.com>
910
911 PR c++/88312 - pack expansion of decltype.
912 * pt.c (instantiation_dependent_r): A template non-type parameter
913 pack is instantiation-dependent.
914
0c2ebbc4 9152019-01-11 Jason Merrill <jason@redhat.com>
916
917 PR c++/88613 - ICE with use of const var in lambda.
918 * expr.c (mark_use): Fix location wrapper handling.
919 * cp-gimplify.c (cp_fold_maybe_rvalue): Call mark_rvalue_use.
920
1b2f170e 9212019-01-11 Tobias Burnus <burnus@net-b.de>
922
923 PR C++/88114
924 * decl2.c (maybe_emit_vtables): If needed, generate code for
925 the destructor of an abstract class.
926 (mark_used): Update comment for older function-name change.
927
b385e516 9282019-01-11 Paolo Carlini <paolo.carlini@oracle.com>
929
930 * decl.c (start_decl): Improve error location.
931 (grokdeclarator): Likewise, improve two locations.
932
f4d3c071 9332019-01-09 Sandra Loosemore <sandra@codesourcery.com>
934
935 PR other/16615
936
937 * cp-tree.h: Mechanically replace "can not" with "cannot".
938 * parser.c: Likewise.
939 * pt.c: Likewise.
940
7cc45975 9412019-01-08 Paolo Carlini <paolo.carlini@oracle.com>
942
943 * decl.c (grok_reference_init): Improve error location.
944 (grokdeclarator): Likewise, improve two locations.
945
90e20c9c 9462019-01-08 Marek Polacek <polacek@redhat.com>
947
91902bb4 948 PR c++/88538 - braced-init-list in template-argument-list.
949 * parser.c (cp_parser_template_argument): Handle braced-init-list when
950 in C++20.
951
90e20c9c 952 PR c++/88548 - this accepted in static member functions.
953 * parser.c (cp_debug_parser): Adjust printing of
954 local_variables_forbidden_p.
955 (cp_parser_new): Set local_variables_forbidden_p to 0 rather than false.
956 (cp_parser_primary_expression): When checking
957 local_variables_forbidden_p, use THIS_FORBIDDEN or
958 LOCAL_VARS_FORBIDDEN.
959 (cp_parser_lambda_body): Update the type of
960 local_variables_forbidden_p. Set it to 0 rather than false.
961 (cp_parser_condition): Adjust call to cp_parser_declarator.
962 (cp_parser_explicit_instantiation): Likewise.
963 (cp_parser_init_declarator): Likewise.
964 (cp_parser_declarator): New parameter. Use it.
965 (cp_parser_direct_declarator): New parameter. Use it to set
966 local_variables_forbidden_p. Adjust call to cp_parser_declarator.
967 (cp_parser_type_id_1): Adjust call to cp_parser_declarator.
968 (cp_parser_parameter_declaration): Likewise.
969 (cp_parser_default_argument): Update the type of
970 local_variables_forbidden_p. Set it to LOCAL_VARS_AND_THIS_FORBIDDEN
971 rather than true.
972 (cp_parser_member_declaration): Tell cp_parser_declarator if we saw
973 'static' or 'friend'.
974 (cp_parser_exception_declaration): Adjust call to cp_parser_declarator.
975 (cp_parser_late_parsing_default_args): Update the type of
976 local_variables_forbidden_p. Set it to LOCAL_VARS_AND_THIS_FORBIDDEN
977 rather than true.
978 (cp_parser_cache_defarg): Adjust call to cp_parser_declarator.
979 (cp_parser_objc_class_ivars): Likewise.
980 (cp_parser_objc_struct_declaration): Likewise.
981 (cp_parser_omp_for_loop_init): Likewise.
982 * parser.h (cp_parser): Change the type of local_variables_forbidden_p
983 to unsigned char.
984 (LOCAL_VARS_FORBIDDEN, LOCAL_VARS_AND_THIS_FORBIDDEN, THIS_FORBIDDEN):
985 Define.
986
8f7d5246 9872019-01-08 Paolo Carlini <paolo.carlini@oracle.com>
988
989 * decl.c (start_decl): Improve permerror location.
990
6e5908c9 9912019-01-08 Jonathan Wakely <jwakely@redhat.com>
992 Jakub Jelinek <jakub@redhat.com>
993
994 PR c++/88554
995 * decl.c (finish_function): For -Wreturn-type don't add a return *this;
996 fixit hint if current_class_ref is NULL. Use a single if instead of
997 two nested ones.
998
2318c037 9992019-01-07 Paolo Carlini <paolo.carlini@oracle.com>
1000
1001 * decl.c (start_decl): Improve two error_at locations.
1002 (expand_static_init): Likewise.
1003
677576f7 10042019-01-07 Marek Polacek <polacek@redhat.com>
1005
1006 PR c++/88741 - wrong error with initializer-string.
1007 * decl.c (cp_complete_array_type): Strip any location wrappers.
1008
c38103e8 10092019-01-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1010
1011 PR c++/88261
1012 PR c++/69338
1013 PR c++/69696
1014 PR c++/69697
1015 * cp-tree.h (LOOKUP_ALLOW_FLEXARRAY_INIT): New flag value.
1016 * typeck2.c (digest_init_r): Raise an error for non-static
1017 initialization of a flexible array member.
1018 (process_init_constructor, massage_init_elt,
1019 process_init_constructor_array, process_init_constructor_record,
1020 process_init_constructor_union, process_init_constructor): Add the
1021 flags parameter and pass it thru.
1022 (store_init_value): Pass LOOKUP_ALLOW_FLEXARRAY_INIT parameter to
1023 digest_init_flags for static decls.
1024
59409f09 10252019-01-07 Jakub Jelinek <jakub@redhat.com>
1026
1027 PR c++/85052
1028 * cp-tree.h (cp_build_vec_convert): Declare.
1029 * parser.c (cp_parser_postfix_expression): Parse
1030 __builtin_convertvector.
1031 * constexpr.c: Include fold-const-call.h.
1032 (cxx_eval_internal_function): Handle IFN_VEC_CONVERT.
1033 (potential_constant_expression_1): Likewise.
1034 * semantics.c (cp_build_vec_convert): New function.
1035 * pt.c (tsubst_copy_and_build): Handle CALL_EXPR to
1036 IFN_VEC_CONVERT.
1037
0627c5c9 10382019-01-03 Jakub Jelinek <jakub@redhat.com>
1039
1040 PR c++/88636
1041 * decl.c (builtin_function_1): Return result of pushdecl_top_level
1042 or pushdecl rather than decl.
1043
f9f7d90c 10442019-01-03 Paolo Carlini <paolo.carlini@oracle.com>
1045
1046 * tree.c (handle_nodiscard_attribute): Improve warning location.
1047
37fb9cf6 10482019-01-02 Marek Polacek <polacek@redhat.com>
1049
1050 PR c++/88612 - ICE with -Waddress-of-packed-member.
1051 * call.c (convert_for_arg_passing): Only give warnings with tf_warning.
1052 * typeck.c (convert_for_assignment): Likewise.
1053
6080dd2f 1054 PR c++/88631 - CTAD failing for value-initialization.
1055 * typeck2.c (build_functional_cast): Try deducing the template
1056 arguments even if there are no arguments to deduce from.
1057
fbd26352 10582019-01-01 Jakub Jelinek <jakub@redhat.com>
ca29c574 1059
8e8f6434 1060 Update copyright years.
7dfbd804 1061\f
fbd26352 1062Copyright (C) 2019 Free Software Foundation, Inc.
7dfbd804 1063
1064Copying and distribution of this file, with or without modification,
1065are permitted in any medium without royalty provided the copyright
1066notice and this notice are preserved.