<html>
    <head>
      <base href="http://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 --- - Regression/crash for noexcept"
   href="http://llvm.org/bugs/show_bug.cgi?id=22072">22072</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression/crash for noexcept
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </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>C++11
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>abramo.bagnara@bugseng.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following source no longer compiles and crash (r224986)

$ cat q.cc
template <class T> void f() {}
int v = noexcept(&f);
$ clang++ -cc1 -std=c++11 q.cc
shouldn't see dependent / unresolved nodes here
UNREACHABLE executed at Expr.cpp:2898!
0  clang++         0x00000000040e4d56 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1  clang++         0x00000000040e4ff1
2  clang++         0x00000000040e3c13
3  libpthread.so.0 0x00007ff0f6ad8340
4  libc.so.6       0x00007ff0f5aebbb9 gsignal + 57
5  libc.so.6       0x00007ff0f5aeefc8 abort + 328
6  clang++         0x00000000040c969a
7  clang++         0x000000000291b8e4
clang::Expr::HasSideEffects(clang::ASTContext const&, bool) const + 266
8  clang++         0x000000000291bdfd
clang::Expr::HasSideEffects(clang::ASTContext const&, bool) const + 1571
9  clang++         0x0000000001b1e59b
clang::Sema::BuildCXXNoexceptExpr(clang::SourceLocation, clang::Expr*,
clang::SourceLocation) + 77
10 clang++         0x0000000001b1e69e
clang::Sema::ActOnNoexceptExpr(clang::SourceLocation, clang::SourceLocation,
clang::Expr*, clang::SourceLocation) + 48
11 clang++         0x00000000017f75c9 clang::Parser::ParseCastExpression(bool,
bool, bool&, clang::Parser::TypeCastState) + 13395
12 clang++         0x00000000017f4048 clang::Parser::ParseCastExpression(bool,
bool, clang::Parser::TypeCastState) + 54
13 clang++         0x00000000017f2ff4
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 164
14 clang++         0x00000000017c5b04
15 clang++         0x00000000017ce1a7
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) + 2031
16 clang++         0x00000000017cd3e1
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 2005
17 clang++         0x00000000017bbe03
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 1015
18 clang++         0x00000000017bbef3
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 189
19 clang++         0x00000000017bb6df
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 2415
20 clang++         0x00000000017bad3f
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 575
21 clang++         0x00000000017b450f clang::ParseAST(clang::Sema&, bool, bool)
+ 605
22 clang++         0x000000000121ae0c clang::ASTFrontendAction::ExecuteAction()
+ 322
23 clang++         0x000000000121a8e7 clang::FrontendAction::Execute() + 139
24 clang++         0x00000000011e15d0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 770
25 clang++         0x00000000011a3a71
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 993
26 clang++         0x000000000118fbe2 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 770
27 clang++         0x000000000119d302
28 clang++         0x000000000119d8e4 main + 1069
29 libc.so.6       0x00007ff0f5ad6ec5 __libc_start_main + 245
30 clang++         0x000000000118e379
Stack dump:
0.    Program arguments: /home/abramo/bin/clang/clang++ -cc1 -std=c++11 q.cc 
1.    q.cc:2:21: current parser token ';'</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>