https://llvm.org/bugs/show_bug.cgi?id=25483

Richard Smith <richard-l...@metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-l...@metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> ---
The behaviour you're seeing is due to C++'s two-phase name lookup. For a name
like `A` in the base specifier, unqualified name lookup is performed in the
context of the template definition, not in the context of the instantiation,
and it does not look into dependent base classes. So lookup for `A` finds the
class template ::A, not the injected-class-name, and that is not valid here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to