https://llvm.org/bugs/show_bug.cgi?id=21846
Davide Italiano <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #1 from Davide Italiano <[email protected]> --- Fixed in clang head. % ./clang -fno-crash-diagnostics -std=c++11 -xc++ -c -emit-llvm lex_crash.cpp lex_crash.cpp:2:15: error: declaration of anonymous struct must be a definition struct A::X < struct T ^ lex_crash.cpp:3:1: error: expected a type ^ lex_crash.cpp:2:11: error: explicit specialization of non-template struct 'X' struct A::X < struct T ^ lex_crash.cpp:2:11: error: no struct named 'X' in 'A<T>' struct A::X < struct T ~~~^ lex_crash.cpp:3:1: error: expected member name or ';' after declaration specifiers ^ lex_crash.cpp:3:1: error: expected '}' lex_crash.cpp:1:32: note: to match this '{' template <typename T> struct A { ^ lex_crash.cpp:2:23: error: expected ';' after struct struct A::X < struct T ^ ; 7 errors generated. -- 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
