c++: spec_hasher::equal and PARM_DECLs [PR94632]
[gcc.git] / gcc / cp / ChangeLog
index 79c292a821a74029dd504cca3b51155dadf254fb..9533cca713702cc3213e3ec4544343b23f117c02 100644 (file)
@@ -1,6 +1,102 @@
+2020-04-18  Patrick Palka  <ppalka@redhat.com>
+
+       PR c++/94632
+       * tree.c (cp_tree_equal) <case PARM_DECL>: Ignore
+       comparing_specializations if the parameters' contexts are identical.
+
+       PR c++/92187
+       * pt.c (splice_late_return_type): Propagate cv-qualifiers and
+       PLACEHOLDER_TYPE_CONSTRAINTS from the original auto node to the new one.
+
+2020-04-17  Patrick Palka  <ppalka@redhat.com>
+
+       PR c++/94483
+       * lambda.c (lambda_capture_field_type): Avoid doing auto deduction if
+       the explicit initializer has parameter packs.
+
+       PR c++/88754
+       * parser.c (cp_parser_check_template_parameters): Before issuing a hard
+       error, first try simulating an error instead.
+
+2020-04-17  Jakub Jelinek  <jakub@redhat.com>
+
+       PR other/94629
+       * call.c (build_conditional_expr_1): Remove redundant assignment to
+       arg2.
+
+2020-04-16  Patrick Palka  <ppalka@redhat.com>
+
+       PR c++/94475
+       * cvt.c (ocp_convert): If the result of scalar_constant_value is
+       erroneous, ignore it and use the original expression.
+
+2020-04-16  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/94571
+       * parser.c (cp_parser_simple_declaration): Fix up a pasto in
+       diagnostics.
+
+2020-04-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/94593
+       * parser.c (cp_parser_pragma) <case PRAGMA_OMP_REQUIRES>: Reject
+       requires directive when not at file or namespace scope.
+
+2020-04-14  Iain Sandoe  <iain@sandoe.co.uk>
+
+       PR c++/94359
+       * coroutines.cc (build_actor_fn): Check that the target can
+       support the resume tailcall before mandating it.
+
+2020-04-14  Patrick Palka  <ppalka@redhat.com>
+
+       PR c++/85278
+       * cxx-pretty-print.c (cxx_pretty_printer:simple_type_specifier)
+       <case DECLTYPE_TYPE>: Handle DECLTYPE_TYPE here instead of ...
+       (pp_cxx_type_specifier_seq) <case DECLTYPE_TYPE>: ... here.
+       (cxx_pretty_printer::direct_abstract_declarator) <case DECLTYPE_TYPE>:
+       New no-op case.
+
+       PR c++/94034
+       * constexpr.c (replace_result_decl_data): New struct.
+       (replace_result_decl_data_r): New function.
+       (replace_result_decl): New function.
+       (cxx_eval_call_expression): Use it.
+       * tree.c (build_aggr_init_expr): Set the location of the AGGR_INIT_EXPR
+       to that of its initializer.
+
+2020-04-13  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/94588
+       * name-lookup.c (check_local_shadow): Add an inform call.
+
+2020-04-13  Patrick Palka  <ppalka@redhat.com>
+
+       PR c++/94521
+       * error.c (dump_scope): Pass TFF_NO_FUNCTION_ARGUMENTS to
+       dump_function_decl when printing a function template instantiation as a
+       scope.
+
+       PR c++/94470
+       * constexpr.c (get_or_insert_ctor_field): Set default value of parameter
+       'pos_hint' to -1.
+       (cxx_eval_bare_aggregate): Use get_or_insert_ctor_field instead of
+       assuming the the next index belongs at the end of the new CONSTRUCTOR.
+       (cxx_eval_store_expression): Revert PR c++/78572 fix.
+
+2020-04-13  Nathan Sidwell  <nathan@acm.org>
+
+       PR c++/94426  lambdas with internal linkage are different to no-linkage
+       * decl2.c (determine_visibility): A lambda's visibility is
+       affected by its extra scope.
+       * pt.c (instantiate_decl): Determine var's visibility before
+       instantiating its initializer.
+       * tree.c (no_linkage_check): Revert code looking at visibility of
+       lambda's extra scope.
+`
 2020-04-10  Iain Sandoe  <iain@sandoe.co.uk>
 
-       PR c++/94538
+       PR c++/94528
        * coroutines.cc (co_await_expander): Remove.
        (expand_one_await_expression): New.
        (process_one_statement): New.
        LOOKUP_AGGREGATE_PAREN_INIT but don't build up a constructor yet.
 
 2020-04-08  Iain Sandoe  <iain@sandoe.co.uk>
-           Jun Ma <JunMa@linux.alibaba.com>
+           Jun Ma  <JunMa@linux.alibaba.com>
 
        * coroutines.cc (maybe_promote_captured_temps): Add a cleanup
        expression, if needed, to any call from which we promoted
        * coroutines.cc (captures_temporary): Strip component_ref
        to its base object.
 
-2020-03-03  Jun Ma <JunMa@linux.alibaba.com>
+2020-03-03  Jun Ma  <JunMa@linux.alibaba.com>
 
        * coroutines.cc (finish_co_await_expr): Build co_await_expr
        with unknown_type_node.
        * tree.c (cp_walk_subtrees): Walk CONSTRUCTOR types here.
        * pt.c (find_parameter_packs_r): Not here.
 
-2020-02-12 Iain Sandoe <iain@sandoe.co.uk>
+2020-02-12 Iain Sandoe  <iain@sandoe.co.uk>
 
        * coroutines.cc (build_actor_fn): Implement deallocation function
        selection per n4849, dcl.fct.def.coroutine bullet 12.
        * coroutines.cc (maybe_promote_captured_temps): Increase the index
        number for temporary variables' name.
 
-2020-02-05  Jun Ma <JunMa@linux.alibaba.com>
+2020-02-05  Jun Ma  <JunMa@linux.alibaba.com>
 
        * coroutines.cc (build_co_await): Call convert_from_reference
        to wrap co_await_expr with indirect_ref which avoid
        * cp-gimplify.c (predeclare_vla): New.
        (cp_genericize_r) [NOP_EXPR]: Call it.
 
-2020-02-03  Jun Ma <JunMa@linux.alibaba.com>
+2020-02-03  Jun Ma  <JunMa@linux.alibaba.com>
 
        * coroutines.cc (transform_await_wrapper): Set actor funcion as
        new context of label_decl.