[LLVMbugs] [Bug 8384] Assertion `Access == AS_private || Access == AS_protected' on invalid code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 12 04:58:55 PDT 2013


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

Serge Pavlov <sepavloff at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |sepavloff at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #2 from Serge Pavlov <sepavloff at gmail.com> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130912/d115316c/attachment.html>


More information about the llvm-bugs mailing list