Author
anonymous
over 6 years ago
Language
Compiler
Options
Author
anonymous
over 6 years ago
$
prog.cc:4:14: error: reference to overloaded function could not be resolved; did you mean to call it?
decltype(bar)::does_not_exist;
^~~
prog.cc:1:24: note: possible target for call
template<class T> void bar() {}
^
Stack dump:
0. Program arguments: /opt/wandbox/clang-head/bin/clang-7 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name prog.cc -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -nostdinc++ -resource-dir /opt/wandbox/clang-head/lib/clang/7.0.0 -I /opt/wandbox/clang-head/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 -D BOOST_NO_AUTO_PTR -I /opt/wandbox/boost-1.67.0/clang-head/include -internal-isystem /usr/local/include -internal-isystem /opt/wandbox/clang-head/lib/clang/7.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall -Wextra -std=c++17 -fdeprecated-macro -fdebug-compilation-dir /home/jail -ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -fansi-escape-codes -o /tmp/prog-64dfae.o -x c++ prog.cc
1. prog.cc:4:20: current parser token 'does_not_exist'
2. prog.cc:3:12: parsing function body 'main'
3. prog.cc:3:12: in compound statement ('{}')
#0 0x0000000001cd2864 PrintStackTraceSignalHandler(void*) (/opt/wandbox/clang-head/bin/clang-7+0x1cd2864)
#1 0x0000000001cd0990 llvm::sys::RunSignalHandlers() (/opt/wandbox/clang-head/bin/clang-7+0x1cd0990)
#2 0x0000000001cd2a12 SignalHandler(int) (/opt/wandbox/clang-head/bin/clang-7+0x1cd2a12)
#3 0x00007fed2e97b390 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x0000000002f5a229 clang::Sema::ActOnCXXNestedNameSpecifierDecltype(clang::CXXScopeSpec&, clang::DeclSpec const&, clang::SourceLocation) (/opt/wandbox/clang-head/bin/clang-7+0x2f5a229)
#5 0x0000000002d551e5 clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&, clang::OpaquePtr<clang::QualType>, bool, bool*, bool, clang::IdentifierInfo**, bool) (/opt/wandbox/clang-head/bin/clang-7+0x2d551e5)
#6 0x0000000002d0589c clang::Parser::TryAnnotateTypeOrScopeToken() (/opt/wandbox/clang-head/bin/clang-7+0x2d0589c)
#7 0x0000000002d9fe28 clang::Parser::isCXXDeclarationSpecifier(clang::Parser::TPResult, bool*) (/opt/wandbox/clang-head/bin/clang-7+0x2d9fe28)
#8 0x0000000002d9f8c7 clang::Parser::isCXXSimpleDeclaration(bool) (/opt/wandbox/clang-head/bin/clang-7+0x2d9f8c7)
#9 0x0000000002d8c24c clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (/opt/wandbox/clang-head/bin/clang-7+0x2d8c24c)
#10 0x0000000002d8be13 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*) (/opt/wandbox/clang-head/bin/clang-7+0x2d8be13)
#11 0x0000000002d93015 clang::Parser::ParseCompoundStatementBody(bool) (/opt/wandbox/clang-head/bin/clang-7+0x2d93015)
#12 0x0000000002d93a05 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/opt/wandbox/clang-head/bin/clang-7+0x2d93a05)
#13 0x0000000002d02fc7 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (/opt/wandbox/clang-head/bin/clang-7+0x2d02fc7)
#14 0x0000000002d1a0fd clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/opt/wandbox/clang-head/bin/clang-7+0x2d1a0fd)
#15 0x0000000002d01f0b clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/opt/wandbox/clang-head/bin/clang-7+0x2d01f0b)
#16 0x0000000002d01829 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (/opt/wandbox/clang-head/bin/clang-7+0x2d01829)
#17 0x0000000002d008ed clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/opt/wandbox/clang-head/bin/clang-7+0x2d008ed)
#18 0x0000000002cff6c8 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) (/opt/wandbox/clang-head/bin/clang-7+0x2cff6c8)
#19 0x0000000002cfa7e7 clang::ParseAST(clang::Sema&, bool, bool) (/opt/wandbox/clang-head/bin/clang-7+0x2cfa7e7)
#20 0x000000000227d3ef clang::FrontendAction::Execute() (/opt/wandbox/clang-head/bin/clang-7+0x227d3ef)
#21 0x000000000223b7a8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/wandbox/clang-head/bin/clang-7+0x223b7a8)
#22 0x000000000232ba9d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/wandbox/clang-head/bin/clang-7+0x232ba9d)
#23 0x00000000008c2fbb cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/wandbox/clang-head/bin/clang-7+0x8c2fbb)
#24 0x00000000008c1c7c main (/opt/wandbox/clang-head/bin/clang-7+0x8c1c7c)
#25 0x00007fed2d6ea830 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20830)
#26 0x00000000008bedd9 _start (/opt/wandbox/clang-head/bin/clang-7+0x8bedd9)
clang-7: error: unable to execute command: Segmentation fault
clang-7: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 7.0.0 (https://github.com/llvm-mirror/clang.git d29eb3a6ffe17e9da5dcaa4fb50c5738e0a57d1e) (https://github.com/llvm-mirror/llvm.git d04690c89baa523884d1b59403bf05d676166fcf)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/wandbox/clang-head/bin
clang-7: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
clang-7: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-7: note: diagnostic msg: /tmp/prog-7fd41c.cpp
clang-7: note: diagnostic msg: /tmp/prog-7fd41c.sh
clang-7: note: diagnostic msg:
********************
Exit Code:
254