https://llvm.org/bugs/show_bug.cgi?id=30586
Bug ID: 30586 Summary: Clang-cl Friend class error: elaborated type refers to a type alias Product: clang Version: trunk Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangb...@nondot.org Reporter: jva...@gmail.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 17392 --> https://llvm.org/bugs/attachment.cgi?id=17392&action=edit Reproduction While trying to get an MSVC code base compiling with clang-cl, we ran against following error: elaborated type refers to a type alias Code (For full code, see attachment): template<typename T> struct A {}; template<typename T> struct B { using A = A<T>; friend class A; }; int main(int argc, char **argv) { B<int> b; return 0; } However, the same code does compile with MSVC2013. Known workarounds: - drop the class-keyword - Use fully qualified name (A<T>) with friend declaration before the using-statement -- 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