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

Richard Smith <[email protected]> changed:

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

--- Comment #3 from Richard Smith <[email protected]> ---
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to