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

Serge Pavlov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |WORKSFORME

--- Comment #2 from Serge Pavlov <[email protected]> ---
Current version (r190528) does not cause assertion violation:

$ clang --version
clang version 3.4 (trunk 190528)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ cat pr8384.cpp
struct{template<struct aa{}template<aa
$ clang -c pr8384.cpp 
pr8384.cpp:1:28: error: expected ';' after struct
struct{template<struct aa{}template<aa
                           ^
                           ;
pr8384.cpp:1:24: error: 'aa' can not be defined in a type specifier
struct{template<struct aa{}template<aa
                       ^
pr8384.cpp:1:28: error: a non-type template parameter cannot have type 'struct
aa'
struct{template<struct aa{}template<aa
                           ^
pr8384.cpp:1:28: error: expected ',' or '>' in template-parameter-list
pr8384.cpp:1:28: warning: declaration does not declare anything
[-Wmissing-declarations]
struct{template<struct aa{}template<aa
                           ^~~~~~~~
pr8384.cpp:1:39: error: a non-type template parameter cannot have type 'aa'
struct{template<struct aa{}template<aa
                                      ^
pr8384.cpp:1:39: error: expected ',' or '>' in template-parameter-list
pr8384.cpp:1:39: error: expected member name or ';' after declaration
specifiers
struct{template<struct aa{}template<aa
                                      ^
pr8384.cpp:1:39: error: expected '}'
pr8384.cpp:1:7: note: to match this '{'
struct{template<struct aa{}template<aa
      ^
pr8384.cpp:1:39: error: expected ';' after struct
struct{template<struct aa{}template<aa
                                      ^
                                      ;
pr8384.cpp:1:24: error: types cannot be declared in an anonymous struct
struct{template<struct aa{}template<aa
                       ^
pr8384.cpp:1:1: error: anonymous structs and classes must be class members
struct{template<struct aa{}template<aa
^
1 warning and 11 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

Reply via email to