<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:sepavloff@gmail.com" title="Serge Pavlov <sepavloff@gmail.com>"> <span class="fn">Serge Pavlov</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Assertion `Access == AS_private || Access == AS_protected' on invalid code"
   href="http://llvm.org/bugs/show_bug.cgi?id=8384">bug 8384</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>sepavloff@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WORKSFORME
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Assertion `Access == AS_private || Access == AS_protected' on invalid code"
   href="http://llvm.org/bugs/show_bug.cgi?id=8384#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Assertion `Access == AS_private || Access == AS_protected' on invalid code"
   href="http://llvm.org/bugs/show_bug.cgi?id=8384">bug 8384</a>
              from <span class="vcard"><a class="email" href="mailto:sepavloff@gmail.com" title="Serge Pavlov <sepavloff@gmail.com>"> <span class="fn">Serge Pavlov</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>