Author
anonymous
over 6 years ago
Language
C++
Compiler
clang 3.4
Options
Don't Use Boost
C++1y
no pedantic
Author
anonymous
over 6 years ago
$ clang++ prog.cc -std=c++1y
0 clang-3.4 0x00000000013d6f92 llvm::sys::PrintStackTrace(_IO_FILE*) + 50
1 clang-3.4 0x00000000013d67e4
2 libpthread.so.0 0x00007f5906140390
3 clang-3.4 0x00000000018d82bd clang::Sema::BuildPossibleImplicitMemberExpr(clang::CXXScopeSpec const&, clang::SourceLocation, clang::LookupResult&, clang::TemplateArgumentListInfo const*) + 925
4 clang-3.4 0x000000000189ae97 clang::Sema::BuildQualifiedDeclarationNameExpr(clang::CXXScopeSpec&, clang::DeclarationNameInfo const&, bool) + 471
5 clang-3.4 0x0000000001a0607c
6 clang-3.4 0x0000000001a0686b
7 clang-3.4 0x00000000019f5bf9
8 clang-3.4 0x00000000019fd408
9 clang-3.4 0x00000000019f46bc
10 clang-3.4 0x00000000019f491a
11 clang-3.4 0x0000000001a0d9dd clang::Sema::SubstFunctionDeclType(clang::TypeSourceInfo*, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName, clang::CXXRecordDecl*, unsigned int) + 765
12 clang-3.4 0x0000000001a14041 clang::TemplateDeclInstantiator::SubstFunctionType(clang::FunctionDecl*, llvm::SmallVectorImpl<clang::ParmVarDecl*>&) + 129
13 clang-3.4 0x0000000001a1bcca clang::TemplateDeclInstantiator::VisitCXXMethodDecl(clang::CXXMethodDecl*, clang::TemplateParameterList*, bool) + 682
14 clang-3.4 0x0000000001a20f15 clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 165
15 clang-3.4 0x00000000019d1752 clang::Sema::FinishTemplateArgumentDeduction(clang::FunctionTemplateDecl*, llvm::SmallVectorImpl<clang::DeducedTemplateArgument>&, unsigned int, clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&, llvm::SmallVectorImpl<clang::Sema::OriginalCallArg> const*) + 1186
16 clang-3.4 0x00000000019d9554 clang::Sema::DeduceTemplateArguments(clang::FunctionTemplateDecl*, clang::TemplateArgumentListInfo*, llvm::ArrayRef<clang::Expr*>, clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&) + 1444
17 clang-3.4 0x000000000194ceac clang::Sema::AddMethodTemplateCandidate(clang::FunctionTemplateDecl*, clang::DeclAccessPair, clang::CXXRecordDecl*, clang::TemplateArgumentListInfo*, clang::QualType, clang::Expr::Classification, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool) + 364
18 clang-3.4 0x000000000194d29e clang::Sema::AddMethodCandidate(clang::DeclAccessPair, clang::QualType, clang::Expr::Classification, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool) + 142
19 clang-3.4 0x000000000195575f clang::Sema::BuildCallToObjectOfClassType(clang::Scope*, clang::Expr*, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation) + 895
20 clang-3.4 0x00000000018a04ad clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool) + 1613
21 clang-3.4 0x00000000016ddde8 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*, true>) + 2648
22 clang-3.4 0x00000000016d8fab clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 123
23 clang-3.4 0x00000000016db59d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 45
24 clang-3.4 0x00000000016db63f clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
25 clang-3.4 0x00000000016db6b9 clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
26 clang-3.4 0x000000000170bfa6 clang::Parser::ParseExprStatement() + 70
27 clang-3.4 0x000000000170b2a3 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) + 2899
28 clang-3.4 0x000000000170b4bc clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*) + 140
29 clang-3.4 0x000000000170eb9f clang::Parser::ParseCompoundStatementBody(bool) + 1695
30 clang-3.4 0x0000000001710fa6 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 198
31 clang-3.4 0x00000000016ac411 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) + 1569
32 clang-3.4 0x00000000016c13dd clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 2173
33 clang-3.4 0x00000000016a9d30 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) + 272
34 clang-3.4 0x00000000016aa401
35 clang-3.4 0x00000000016aa42f clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) + 31
36 clang-3.4 0x00000000016ae783 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 307
37 clang-3.4 0x00000000016af076 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 198
38 clang-3.4 0x00000000016a3fbb clang::ParseAST(clang::Sema&, bool, bool) + 507
39 clang-3.4 0x00000000015e9fd9 clang::FrontendAction::Execute() + 137
40 clang-3.4 0x00000000015cb71c clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 332
41 clang-3.4 0x00000000013dac8c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1788
42 clang-3.4 0x0000000000722779 cc1_main(char const**, char const**, char const*, void*) + 1145
43 clang-3.4 0x0000000000707dd1 main + 513
44 libc.so.6 0x00007f59054e4830 __libc_start_main + 240
45 clang-3.4 0x0000000000721529 _start + 41
Stack dump:
0. Program arguments: /opt/wandbox/clang-3.4/bin/clang-3.4 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name prog.cc -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -nostdinc++ -resource-dir /opt/wandbox/clang-3.4/bin/../lib/clang/3.4 -I /opt/wandbox/clang-3.4/include/c++/v1 -I /opt/wandbox/boost-sml/include -I /opt/wandbox/boost-di/include -I /opt/wandbox/range-v3/include -I /opt/wandbox/nlohmann-json/src -I /opt/wandbox/cmcstl2/include -I /opt/wandbox/te/include -internal-isystem /usr/local/include -internal-isystem /opt/wandbox/clang-3.4/bin/../lib/clang/3.4/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++1y -fdeprecated-macro -fdebug-compilation-dir /home/jail -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -fansi-escape-codes -vectorize-slp -o /tmp/prog-34a35c.o -x c++ prog.cc
1. prog.cc:6:61: current parser token ')'
2. prog.cc:5:12: parsing function body 'main'
3. prog.cc:5:12: in compound statement ('{}')
clang-3.4: error: unable to execute command: Segmentation fault
clang-3.4: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.4: note: diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed source, and associated run script.
clang-3.4: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.4: note: diagnostic msg: /tmp/prog-ce576f.cpp
clang-3.4: note: diagnostic msg: /tmp/prog-ce576f.sh
clang-3.4: note: diagnostic msg:
********************
Exit Code:
254