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

            Bug ID: 31765
           Summary: incorrectly permitting definition of class template
                    via injected-class-name
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: richard-l...@metafoo.co.uk
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
    Classification: Unclassified

Clang accepts this:

  template<typename T> struct A {};
  template<typename T> struct A<T>::A {};

It's not obvious whether this is a valid use of the injected-class-name (the
standard doesn't say the lookup in a class-head ignores functions, but it must
do), but this should produce a redefinition error if nothing else.

-- 
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