[LLVMbugs] [Bug 15292] New: compiler crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 17 16:42:24 PST 2013


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

            Bug ID: 15292
           Summary: compiler crash
           Product: clang
           Version: 3.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: artur at ebasoft.com.pl
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

for code:

 QFileInfoList list, raw_list = dic_dir.entryInfoList();
 std::copy_if( raw_list.begin(),raw_list.end(), std::back_inserter(list), 
    []( QFileInfo const & inf ) -> bool
          { return inf.fileName().endsWith(".all.c"); }

crash with -std=c++0x

mainf.cpp:105:25: fatal error: use of undeclared identifier 'inf'
               { return inf.fileName().endsWith(".all.c"); }
                        ^
0  libLLVM-3.0.so.1 0x00002b2a9929b66f
1  libLLVM-3.0.so.1 0x00002b2a9929bad9
2  libpthread.so.0  0x00002b2a99bdacb0
3  clang            0x0000000000d1d349
clang::Expr::hasAnyTypeDependentArguments(clang::Expr**, unsigned int) + 41
4  clang            0x00000000009499d3
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
clang::ASTMultiPtr<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool) +
483
5  clang            0x0000000000812d09
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*,
true>) + 3145
6  clang            0x000000000080cd3b clang::Parser::ParseCastExpression(bool,
bool, bool&, bool) + 203
7  clang            0x000000000080f59e clang::Parser::ParseCastExpression(bool,
bool, bool) + 30
8  clang            0x000000000080fe8f
clang::Parser::ParseAssignmentExpression() + 31
9  clang            0x0000000000810c59 clang::Parser::ParseExpression() + 9
10 clang            0x00000000007d35f2
clang::Parser::ParseExprStatement(clang::ParsedAttributes&) + 50
11 clang            0x00000000007cfe18
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 2616
12 clang            0x00000000007cca11
clang::Parser::ParseCompoundStatementBody(bool) + 417
13 clang            0x00000000007cd7f6
clang::Parser::ParseCompoundStatement(clang::ParsedAttributes&, bool, unsigned
int) + 38
14 clang            0x00000000007cd831
clang::Parser::ParseCompoundStatement(clang::ParsedAttributes&, bool) + 17
15 clang            0x00000000007cfe47
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 2663
16 clang            0x00000000007d3c36
clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 758
17 clang            0x00000000007cfe2d
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 2637
18 clang            0x00000000007cca11
clang::Parser::ParseCompoundStatementBody(bool) + 417
19 clang            0x00000000007cd7f6
clang::Parser::ParseCompoundStatement(clang::ParsedAttributes&, bool, unsigned
int) + 38
20 clang            0x00000000007cd831
clang::Parser::ParseCompoundStatement(clang::ParsedAttributes&, bool) + 17
21 clang            0x00000000007cfe47
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 2663
22 clang            0x00000000007d3c36
clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 758
23 clang            0x00000000007cfe2d
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 2637
24 clang            0x00000000007cca11
clang::Parser::ParseCompoundStatementBody(bool) + 417
25 clang            0x00000000007cd6fa
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 138
26 clang            0x00000000007e708c
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 1116
27 clang            0x00000000007f4a42
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 610
28 clang            0x00000000007e2c75
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 149
29 clang            0x00000000007e32e6
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 678
30 clang            0x00000000007e4ead
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2685
31 clang            0x00000000008032ef
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::Parser::BalancedDelimiterTracker&) + 367
32 clang            0x000000000080403e clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1854
33 clang            0x00000000007f9b11
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 641
34 clang            0x00000000007e483d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1037
35 clang            0x00000000007e5417
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 167
36 clang            0x00000000007bcbfd clang::ParseAST(clang::Sema&, bool) +
269
37 clang            0x00000000006a6253 clang::CodeGenAction::ExecuteAction() +
51
38 clang            0x00000000005adc7f
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 319
39 clang            0x000000000059653a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1114
40 clang            0x000000000058e1c4 cc1_main(char const**, char const**,
char const*, void*) + 820
41 clang            0x000000000058cb3c main + 620
42 libc.so.6        0x00002b2a9a32376d __libc_start_main + 237
43 clang            0x000000000058dd39
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
mainf.cpp -pic-level 1 -mdisable-fp-elim -relaxed-aliasing -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.22 -momit-leaf-frame-pointer -g -coverage-file
CMakeFiles/bstview.dir/mainf.cpp.o -resource-dir /usr/bin/../lib/clang/3.0 -D
AGG_REAL_AS_FIXED -D AQ_X86 -D BUILD_SYSTEM=Linux-3.5.0-23-generic -D
DISABLE_MESSAGES -D DISABLE_TODO -D GPROF_INSTRUMENTATION=0 -D
LOGANDTRACE_DISABLED -D MY_ZCALLOC -D PLATFORM_DEVELOPER_ASSERT -D QT_CORE_LIB
-D QT_DEBUG -D QT_GUI_LIB -D TRACE_DISABLED -D USE_PRECOMPILED_HEADERS=0 -D
WITH_BIONIC=0 -D Z_PREFIX -D _GLIBCXX_PERMIT_BACKWARD_HASH -D __LINUX__ -D
__SIZEOF_VOID_PTR__= -D DEBUG -D _DEBUG -I /usr/include/qt4 -I
/usr/include/qt4/QtGui -I /usr/include/qt4/QtCore -I
/home/artur/projects/ameu_w/build/clang-c++98/DictionaryTest/BstViewQt -I
/home/artur/projects/ameu_w/DictionaryTest/BstViewQt -I
/home/artur/projects/ameu_w/Components/Include -I
/home/artur/projects/ameu_w/Components/Include/linux -I
/home/artur/projects/ameu_w/Components/bst/include -I
/home/artur/projects/ameu_w/Components/GMapCore/Include -I
/home/artur/projects/ameu_w/zlib/125 -I
/home/artur/projects/ameu_w/FakeMFC/INCLUDE -I
/home/artur/projects/ameu_w/DictionaryTest/DictionaryTest -I
/usr/include/qt4/QtDesigner -I /usr/include/qt4/QtDeclarative -I
/usr/include/qt4/QtScriptTools -I /usr/include/qt4/QtDBus -I
/usr/include/qt4/QtXml -I /usr/include/qt4/QtSql -I /usr/include/qt4/QtOpenGL
-I /usr/include/qt4/QtNetwork -I /usr/include/qt4/QtXmlPatterns -I
/usr/include/qt4/QtWebKit -I /usr/include/qt4/QtHelp -I
/usr/include/qt4/QtUiTools -I /usr/include/qt4/QtTest -I
/usr/include/qt4/QtScript -I /usr/include/qt4/QtSvg -I
/usr/include/qt4/Qt3Support -I /usr/share/qt4/mkspecs/default
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/include/c++/4.6 -internal-isystem /usr/include/c++/4.6/x86_64-linux-gnu
-internal-isystem /usr/include/c++/4.6/backward -internal-isystem
/usr/local/include -internal-isystem /usr/bin/../lib/clang/3.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /usr/include -Wall -Wfatal-errors -Warray-bounds
-Wempty-body -Wignored-qualifiers -Wmissing-field-initializers -Wsign-compare
-Wtype-limits -Wuninitialized -Wunused -Wno-unused-parameter -Wextra
-Winit-self -Wmissing-braces -Wmissing-include-dirs -Wsequence-point
-Wno-deprecated -Wempty-body -Wpacked -Wredundant-decls -Wdisabled-optimization
-Wcast-qual -Wstrict-aliasing -Winvalid-pch -Woverloaded-virtual
-Werror=non-virtual-dtor -Werror=delete-non-virtual-dtor -std=gnu++0x
-ferror-limit 19 -fmessage-length 165 -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/bstview.dir/mainf.cpp.o -x c++
/home/artur/projects/ameu_w/DictionaryTest/BstViewQt/mainf.cpp 
1.      /home/artur/projects/ameu_w/DictionaryTest/BstViewQt/mainf.cpp:106:10:
current parser token ')'
2.      /home/artur/projects/ameu_w/DictionaryTest/BstViewQt/mainf.cpp:12:1:
parsing namespace 'Aqurat'
3.      /home/artur/projects/ameu_w/DictionaryTest/BstViewQt/mainf.cpp:68:4:
parsing function body 'ScanDictionaries'
4.      /home/artur/projects/ameu_w/DictionaryTest/BstViewQt/mainf.cpp:68:4: in
compound statement ('{}')
5.      /home/artur/projects/ameu_w/DictionaryTest/BstViewQt/mainf.cpp:80:7: in
compound statement ('{}')
6.      /home/artur/projects/ameu_w/DictionaryTest/BstViewQt/mainf.cpp:93:7: in
compound statement ('{}')
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/mainf-Gryft5.ii
make[3]: *** [DictionaryTest/BstViewQt/CMakeFiles/bstview.dir/mainf.cpp.o] Błąd
254
make[2]: *** [DictionaryTest/BstViewQt/CMakeFiles/bstview.dir/all] Błąd 2
make[1]: *** [DictionaryTest/BstViewQt/CMakeFiles/bstview.dir/rule] Błąd 2

-- 
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/20130218/13120ea5/attachment.html>


More information about the llvm-bugs mailing list