[LLVMbugs] [Bug 15243] clang makes nested-namespace incorrectly

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 19 14:35:22 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=15243

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Looks like GCC implements the resolution of core issue 1310, under which this
is ill-formed.

For some lookups, this rule applies:

C++ [class]p2: "A class-name is inserted into the scope in which it is declared
immediately after the class-name is seen. The class-name is also inserted into
the scope of the class itself; this is known as the injected-class-name."

However, under core issue 1310, this only applies in the rarer case of a lookup
which ignores function names. So the 'CFoo::CFoo::' finds the
injected-class-name, but the final '::CFoo' is a constructor name.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130219/20ab5e12/attachment.html>


More information about the llvm-bugs mailing list