<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW " title="NEW --- - clang accepts invalid declaration of member template in local class" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23844&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=SMANvc-m9RqhXZerF1O4Cyl6tLyrIF0gknkPBe_4teU&s=myAokyi-70XTMiUOnSqAphmJd9EBwoc4chx7kKCQd8Y&e=">23844</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang accepts invalid declaration of member template in local class
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>octoploid@yandex.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>markus@x4 /tmp % cat foo.ii
int main() {
  struct A {
    template <typename...> using nested = void;
  };
}
markus@x4 /tmp % clang++ -c -std=c++11 foo.ii
markus@x4 /tmp % g++ -c -std=c++11 foo.ii
foo.ii: In function ‘int main()’:
foo.ii:3:5: error: invalid declaration of member template in local class
     template <typename...> using nested = void;
     ^
markus@x4 /tmp % icpc -c -std=c++11 foo.ii
foo.ii(3): error: a template declaration is not allowed here
      template <typename...> using nested = void;
      ^

compilation aborted for foo.ii (code 2)</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>