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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Jason Merrill <[email protected]>:

https://gcc.gnu.org/g:fa56ffaf81b9417d6f302f9b21bb5ea9da77ca06

commit r17-4946-gfa56ffaf81b9417d6f302f9b21bb5ea9da77ca06
Author: Jason Merrill <[email protected]>
Date:   Fri Sep 11 00:45:03 2026 -0400

    c++: class conflict with using-decl [PR115806]

    A class using-declaration followed by a class definition is not a
    redefinition, but a conflict of two different kinds of declaration.

            PR c++/115806

    gcc/cp/ChangeLog:

            * decl.cc (lookup_and_check_tag): Strip using here...
            * name-lookup.cc (lookup_elaborated_type): ...not here.

    gcc/testsuite/ChangeLog:

            * g++.dg/lookup/using29.C: Adjust diagnostics.
            * g++.dg/lookup/using68.C: Likewise.
            * g++.dg/modules/using-19_b.C: Likewise.
            * g++.dg/lookup/using53.C: Remove xfails.

Reply via email to