[Bug c++/95809] GCC treats inline namespace declaration as "ambiguous"

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 25 12:16:42 GMT 2020


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu.org

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This changed with r248521

    Implement DR2061

            gcc/
            Implement DR2061
            * name-lookup.c (push_inline_namespaces): New.
            (push_namespace): Look inside inline namespaces.

            testsuite/
            * g++.dg/cpp0x/dr2061.C: New.
            * g++.dg/parse/namespace-alias-1.C: Add more test.

I'm not sure the code is valid, but I'll let Nathan comment.


More information about the Gcc-bugs mailing list