[LLVMbugs] [Bug 22072] New: Regression/crash for noexcept

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 31 03:32:33 PST 2014


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

            Bug ID: 22072
           Summary: Regression/crash for noexcept
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: abramo.bagnara at bugseng.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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 ';'

-- 
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/20141231/2bb397a4/attachment.html>


More information about the llvm-bugs mailing list