invalid-range.cpp:1:13: error: expected '{' namespace I a {p ^ invalid-range.cpp:1:13: error: C++ requires a type specifier for all declarations namespace I a {p ^ invalid-range.cpp:1:18: warning: null character ignored [-Wnull-character] namespace I a {p ^ invalid-range.cpp:1:16: warning: use of GNU old-style field designator extension [-Wgnu-designator] clang-3.6: /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Frontend/TextDiagnostic.cpp:973: void highlightRange(const clang::CharSourceRange &, unsigned int, clang::FileID, const (anonymous namespace)::SourceColumnMap &, std::string &, const clang::SourceManager &, const clang::LangOptions &): Assertion `EndColNo <= map.getSourceLine().size() && "Invalid range!"' failed. #0 0x7ff09c2e5130 llvm::sys::PrintStackTrace(_IO_FILE*) /home/sliedes/projects/llvm/llvm.src/lib/Support/Unix/Signals.inc:422:15 #1 0x7ff09c2eaed3 SignalHandler(int) /home/sliedes/projects/llvm/llvm.src/lib/Support/Unix/Signals.inc:198:3 #2 0x7ff099ba7180 (/lib/x86_64-linux-gnu/libc.so.6+0x35180) #3 0x7ff099ba7107 gsignal /build/glibc-NmptCx/glibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0 #4 0x7ff099ba84e8 abort /build/glibc-NmptCx/glibc-2.19/stdlib/abort.c:91:0 #5 0x7ff099ba0226 __assert_fail_base /build/glibc-NmptCx/glibc-2.19/assert/assert.c:92:0 #6 0x7ff099ba02d2 (/lib/x86_64-linux-gnu/libc.so.6+0x2e2d2) #7 0x7ff09ac56977 highlightRange(clang::CharSourceRange const&, unsigned int, clang::FileID, (anonymous namespace)::SourceColumnMap const&, std::string&, clang::SourceManager const&, clang::LangOptions const&) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Frontend/TextDiagnostic.cpp:973:3 #8 0x7ff09ac56977 clang::TextDiagnostic::emitSnippetAndCaret(clang::SourceLocation, clang::DiagnosticsEngine::Level, llvm::SmallVectorImpl&, llvm::ArrayRef, clang::SourceManager const&) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Frontend/TextDiagnostic.cpp:1123:0 #9 0x7ff09ab75196 llvm::SmallVectorTemplateCommon::isSmall() const /home/sliedes/projects/llvm/llvm.src/include/llvm/ADT/SmallVector.h:86:5 #10 0x7ff09ab75196 llvm::SmallVectorImpl::~SmallVectorImpl() /home/sliedes/projects/llvm/llvm.src/include/llvm/ADT/SmallVector.h:360:0 #11 0x7ff09ab75196 clang::DiagnosticRenderer::emitCaret(clang::SourceLocation, clang::DiagnosticsEngine::Level, llvm::ArrayRef, llvm::ArrayRef, clang::SourceManager const&) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:395:0 #12 0x7ff09ab75196 clang::DiagnosticRenderer::emitDiagnostic(clang::SourceLocation, clang::DiagnosticsEngine::Level, llvm::StringRef, llvm::ArrayRef, llvm::ArrayRef, clang::SourceManager const*, llvm::PointerUnion) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:167:0 #13 0x7ff09ac6204c clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level, clang::Diagnostic const&) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp:155:3 #14 0x7ff09b4090e1 clang::DiagnosticIDs::EmitDiag(clang::DiagnosticsEngine&, clang::DiagnosticIDs::Level) const /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Basic/DiagnosticIDs.cpp:687:7 #15 0x7ff09b4090e1 clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Basic/DiagnosticIDs.cpp:678:0 #16 0x7ff09b3eb703 clang::DiagnosticsEngine::ProcessDiag() /home/sliedes/projects/llvm/llvm.src/tools/clang/include/clang/Basic/Diagnostic.h:790:12 #17 0x7ff09b3eb703 clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Basic/Diagnostic.cpp:361:0 #18 0x7ff095f7ddc2 clang::DiagnosticBuilder::Clear() const /home/sliedes/projects/llvm/llvm.src/tools/clang/include/clang/Basic/Diagnostic.h:901:5 #19 0x7ff095f7ddc2 clang::DiagnosticBuilder::Emit() /home/sliedes/projects/llvm/llvm.src/tools/clang/include/clang/Basic/Diagnostic.h:929:0 #20 0x7ff095f7ddc2 clang::DiagnosticBuilder::~DiagnosticBuilder() /home/sliedes/projects/llvm/llvm.src/tools/clang/include/clang/Basic/Diagnostic.h:952:0 #21 0x7ff095f7ddc2 clang::Parser::ParseInitializerWithPotentialDesignator() /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Parse/ParseInit.cpp:149:0 #22 0x7ff095f80b98 clang::Parser::ParseBraceInitializer() /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Parse/ParseInit.cpp:420:16 #23 0x7ff095e8a7d0 clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Parse/ParseDecl.cpp:1985:21 #24 0x7ff095e81c69 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Parse/ParseDecl.cpp:1698:21 #25 0x7ff0960590e0 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Parse/Parser.cpp:893:10 #26 0x7ff0960576ba clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Parse/Parser.cpp:909:12 #27 0x7ff09605492b clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Parse/Parser.cpp:637:12 #28 0x7ff096051431 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Parse/Parser.cpp:569:12 #29 0x7ff095e37c93 clang::ParseAST(clang::Sema&, bool, bool) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Parse/ParseAST.cpp:145:15 #30 0x7ff09ab85b81 clang::FrontendAction::Execute() /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Frontend/FrontendAction.cpp:428:8 #31 0x7ff09aad8488 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/Frontend/CompilerInstance.cpp:804:7 #32 0x7ff09a7422c3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/sliedes/projects/llvm/llvm.src/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:222:18 #33 0x420258 cc1_main(llvm::ArrayRef, char const*, void*) /home/sliedes/projects/llvm/llvm.src/tools/clang/tools/driver/cc1_main.cpp:110:13 #34 0x419925 ExecuteCC1Tool(llvm::ArrayRef, llvm::StringRef) /home/sliedes/projects/llvm/llvm.src/tools/clang/tools/driver/driver.cpp:369:12 #35 0x419925 main /home/sliedes/projects/llvm/llvm.src/tools/clang/tools/driver/driver.cpp:415:0 #36 0x7ff099b93b45 __libc_start_main /build/glibc-NmptCx/glibc-2.19/csu/libc-start.c:321:0 #37 0x40b328 _start (/home/sliedes/local/llvm-trunk-rel/bin/clang-3.6+0x40b328) Stack dump: 0. Program arguments: /home/sliedes/local/llvm-trunk-rel/bin/clang-3.6 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name invalid-range.cpp -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 -resource-dir /home/sliedes/local/llvm-trunk-rel/bin/../lib/clang/3.6.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/backward -internal-isystem /usr/local/include -internal-isystem /home/sliedes/local/llvm-trunk-rel/bin/../lib/clang/3.6.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/sliedes/t/clang/bug/min -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o /tmp/invalid-range-cc6cbc.o -x c++ invalid-range.cpp 1. parser at end of file clang-3.6: error: unable to execute command: Aborted clang-3.6: error: clang frontend command failed due to signal (use -v to see invocation)