https://gcc.gnu.org/g:cab894172dcd21e0111d192b373e3b18f66b2769
commit r14-10243-gcab894172dcd21e0111d192b373e3b18f66b2769 Author: GCC Administrator <gccadmin@gcc.gnu.org> Date: Sat May 25 00:22:08 2024 +0000 Daily bump. Diff: --- gcc/DATESTAMP | 2 +- gcc/cp/ChangeLog | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ gcc/testsuite/ChangeLog | 53 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 110 insertions(+), 1 deletion(-) diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index 660b1b67ace..96135ecc67a 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20240524 +20240525 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 76bed319ad6..31bad236a08 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,59 @@ +2024-05-24 Jason Merrill <ja...@redhat.com> + + PR c++/115187 + * init.cc (build_delete): Use get_target_expr instead of save_expr. + * tree.cc (stabilize_expr): Update comment. + +2024-05-24 Nathaniel Shead <nathanielosh...@gmail.com> + + Backported from master: + 2024-05-01 Nathaniel Shead <nathanielosh...@gmail.com> + + PR c++/114868 + * module.cc (depset::hash::add_binding_entity): Propagate + OVL_USING_P for using-declarations. + +2024-05-24 Nathaniel Shead <nathanielosh...@gmail.com> + + PR c++/105320 + PR c++/114275 + * cp-tree.h (propagate_defining_module): Declare. + (remove_defining_module): Declare. + (lookup_imported_hidden_friend): Declare. + * decl.cc (duplicate_decls): Also check if hidden decls can be + redeclared in this module. Call remove_defining_module on + to-be-freed newdecl. + * module.cc (imported_temploid_friends): New. + (init_modules): Initialize it. + (trees_out::decl_value): Write it; don't consider imported + temploid friends as attached to a module. + (trees_in::decl_value): Read it for non-discarded decls. + (get_originating_module_decl): Follow the owning decl for an + imported temploid friend. + (propagate_defining_module): New. + (remove_defining_module): New. + * name-lookup.cc (get_mergeable_namespace_binding): New. + (lookup_imported_hidden_friend): New. + * pt.cc (tsubst_friend_function): Propagate defining module for + new friend functions. + (tsubst_friend_class): Lookup imported hidden friends. Check + for valid module attachment of existing names. Propagate + defining module for new classes. + +2024-05-24 Nathaniel Shead <nathanielosh...@gmail.com> + + Backported from master: + 2024-04-30 Nathaniel Shead <nathanielosh...@gmail.com> + + * cp-tree.h (module_may_redeclare): Add default parameter. + * decl.cc (duplicate_decls): Don't emit errors for failed + module_may_redeclare. + (xref_tag): Likewise. + (start_enum): Likewise. + * semantics.cc (begin_class_definition): Likewise. + * module.cc (module_may_redeclare): Clean up logic. Emit error + messages on failure. + 2024-05-22 Marek Polacek <pola...@redhat.com> Backported from master: diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a51b7ba88a0..c490f91c9f0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,56 @@ +2024-05-24 Jason Merrill <ja...@redhat.com> + + PR c++/115187 + * g++.dg/cpp1z/array-prvalue3.C: New test. + +2024-05-24 Nathaniel Shead <nathanielosh...@gmail.com> + + Backported from master: + 2024-05-01 Nathaniel Shead <nathanielosh...@gmail.com> + + PR c++/114868 + * g++.dg/modules/using-15_a.C: New test. + * g++.dg/modules/using-15_b.C: New test. + * g++.dg/modules/using-15_c.C: New test. + +2024-05-24 Nathaniel Shead <nathanielosh...@gmail.com> + + PR c++/105320 + PR c++/114275 + * g++.dg/modules/tpl-friend-10_a.C: New test. + * g++.dg/modules/tpl-friend-10_b.C: New test. + * g++.dg/modules/tpl-friend-10_c.C: New test. + * g++.dg/modules/tpl-friend-10_d.C: New test. + * g++.dg/modules/tpl-friend-11_a.C: New test. + * g++.dg/modules/tpl-friend-11_b.C: New test. + * g++.dg/modules/tpl-friend-12_a.C: New test. + * g++.dg/modules/tpl-friend-12_b.C: New test. + * g++.dg/modules/tpl-friend-12_c.C: New test. + * g++.dg/modules/tpl-friend-12_d.C: New test. + * g++.dg/modules/tpl-friend-12_e.C: New test. + * g++.dg/modules/tpl-friend-12_f.C: New test. + * g++.dg/modules/tpl-friend-13_a.C: New test. + * g++.dg/modules/tpl-friend-13_b.C: New test. + * g++.dg/modules/tpl-friend-13_c.C: New test. + * g++.dg/modules/tpl-friend-13_d.C: New test. + * g++.dg/modules/tpl-friend-13_e.C: New test. + * g++.dg/modules/tpl-friend-13_f.C: New test. + * g++.dg/modules/tpl-friend-13_g.C: New test. + * g++.dg/modules/tpl-friend-14_a.C: New test. + * g++.dg/modules/tpl-friend-14_b.C: New test. + * g++.dg/modules/tpl-friend-14_c.C: New test. + * g++.dg/modules/tpl-friend-14_d.C: New test. + * g++.dg/modules/tpl-friend-9.C: New test. + +2024-05-24 Nathaniel Shead <nathanielosh...@gmail.com> + + Backported from master: + 2024-04-30 Nathaniel Shead <nathanielosh...@gmail.com> + + * g++.dg/modules/enum-12.C: Update error message. + * g++.dg/modules/friend-5_b.C: Likewise. + * g++.dg/modules/shadow-1_b.C: Likewise. + 2024-05-23 Martin Jambor <mjam...@suse.cz> Backported from master: