https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116160

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathaniel Shead <nsh...@gcc.gnu.org>:

https://gcc.gnu.org/g:2196a20b82bdde2aeb099bcfd164fa29a698e837

commit r15-3939-g2196a20b82bdde2aeb099bcfd164fa29a698e837
Author: Nathaniel Shead <nathanielosh...@gmail.com>
Date:   Fri Sep 20 00:47:12 2024 +1000

    c++: Implement resolution for DR 36 [PR116160]

    This implements part of P1787 to no longer complain about redeclaring an
    entity via using-decl other than in a class scope.

            PR c++/116160

    gcc/cp/ChangeLog:

            * name-lookup.cc (supplement_binding): Allow redeclaration via
            USING_DECL if not in class scope.
            (do_nonmember_using_decl): Remove function-scope exemption.
            (push_using_decl_bindings): Remove outdated comment.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/using-enum-3.C: No longer expect an error.
            * g++.dg/lookup/using53.C: Remove XFAIL.
            * g++.dg/cpp2a/using-enum-11.C: New test.

    Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>
    Reviewed-by: Jason Merrill <ja...@redhat.com>
  • [Bug c++/116160] [DR36] Rejects... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to