<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang++ segfaults when compiling"
   href="http://llvm.org/bugs/show_bug.cgi?id=20159">20159</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang++ segfaults when compiling
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.4
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>info@project-osrm.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>0  libLLVM-3.4.so.1 0x00002b27b997e5d2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  libLLVM-3.4.so.1 0x00002b27b997e3c4
2  libpthread.so.0  0x00002b27ba442340
3  clang            0x00000000010b905b
clang::Expr::EvaluateAsInitializer(clang::APValue&, clang::ASTContext const&,
clang::VarDecl const*, llvm::SmallVectorImpl<std::pair<clang::SourceLocation,
clang::PartialDiagnostic> >&) const + 59
4  clang            0x0000000001042df1
clang::VarDecl::evaluateValue(llvm::SmallVectorImpl<std::pair<clang::SourceLocation,
clang::PartialDiagnostic> >&) const + 161
5  clang            0x0000000001048d32 clang::VarDecl::checkInitIsICE() const +
274
6  clang            0x0000000000b34a77
clang::Sema::ActOnFinishFullExpr(clang::Expr*, clang::SourceLocation, bool,
bool, bool) + 1911
7  clang            0x0000000000a3c35d
clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool, bool) +
1933
8  clang            0x000000000093102c
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 1468
9  clang            0x000000000093aa7e
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1742
10 clang            0x000000000093ed1b
clang::Parser::ParseSimpleDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&, bool, clang::Parser::ForRangeInit*)
+ 843
11 clang            0x000000000093efda
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 218
12 clang            0x0000000000982ee0
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 1216
13 clang            0x0000000000983705
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 117
14 clang            0x0000000000986e9d
clang::Parser::ParseCompoundStatementBody(bool) + 1805
15 clang            0x000000000098727e
clang::Parser::ParseCompoundStatement(bool, unsigned int) + 30
16 clang            0x00000000009872b2
clang::Parser::ParseCompoundStatement(bool) + 18
17 clang            0x0000000000982f5a
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 1338
18 clang            0x0000000000983705
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 117
19 clang            0x000000000098381a
clang::Parser::ParseStatement(clang::SourceLocation*) + 90
20 clang            0x0000000000985ef3
clang::Parser::ParseForStatement(clang::SourceLocation*) + 1875
21 clang            0x000000000098349b
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2683
22 clang            0x0000000000983705
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 117
23 clang            0x0000000000986e9d
clang::Parser::ParseCompoundStatementBody(bool) + 1805
24 clang            0x0000000000968b32
clang::Parser::ParseLambdaExpressionAfterIntroducer(clang::LambdaIntroducer&) +
2850
25 clang            0x000000000096a003 clang::Parser::ParseLambdaExpression() +
339
26 clang            0x00000000009557ba clang::Parser::ParseCastExpression(bool,
bool, bool&, clang::Parser::TypeCastState) + 6170
27 clang            0x00000000009565ed clang::Parser::ParseCastExpression(bool,
bool, clang::Parser::TypeCastState) + 29
28 clang            0x000000000095667f
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
29 clang            0x0000000000957f11
clang::Parser::ParseExpressionList(llvm::SmallVectorImpl<clang::Expr*>&,
llvm::SmallVectorImpl<clang::SourceLocation>&, void
(clang::Sema::*)(clang::Scope*, clang::Expr*, llvm::ArrayRef<clang::Expr*>),
clang::Expr*) + 193
30 clang            0x0000000000958e45
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*,
true>) + 3141
31 clang            0x000000000095401b clang::Parser::ParseCastExpression(bool,
bool, bool&, clang::Parser::TypeCastState) + 123
32 clang            0x00000000009565ed clang::Parser::ParseCastExpression(bool,
bool, clang::Parser::TypeCastState) + 29
33 clang            0x000000000095667f
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
34 clang            0x00000000009566f9
clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
35 clang            0x0000000000984206 clang::Parser::ParseExprStatement() + 54
36 clang            0x000000000098357f
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2911
37 clang            0x0000000000983705
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 117
38 clang            0x0000000000986e9d
clang::Parser::ParseCompoundStatementBody(bool) + 1805
39 clang            0x0000000000988fee
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 190
40 clang            0x00000000009936c4
clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 308
41 clang            0x00000000009934e0
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 112
42 clang            0x000000000094da1c
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*) + 1548
43 clang            0x000000000094ed73
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&) + 1523
44 clang            0x0000000000933f3f
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 4703
45 clang            0x000000000098d152
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 882
46 clang            0x000000000098e7c8
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 888
47 clang            0x000000000098eb19
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 121
48 clang            0x000000000093f148
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 584
49 clang            0x000000000092afe4
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 372
50 clang            0x000000000092b5f6
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 182
51 clang            0x000000000092276b clang::ParseAST(clang::Sema&, bool,
bool) + 283
52 clang            0x0000000000671149 clang::FrontendAction::Execute() + 169
53 clang            0x0000000000651a75
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 293
54 clang            0x000000000063c9b6
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1638
55 clang            0x0000000000638788 cc1_main(char const**, char const**,
char const*, void*) + 1176
56 clang            0x0000000000636fff main + 7519
57 libc.so.6        0x00002b27bab8bec5 __libc_start_main + 245
58 clang            0x00000000006377ef
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -disable-free -disable-llvm-verifier -main-file-name OSRM_impl.cpp
-mrelocation-model pic -pic-level 2 -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.24 -momit-leaf-frame-pointer -coverage-file
/home/dennis/Coding/Project-OSRM/build/CMakeFiles/OSRM.dir/Library/OSRM_impl.cpp.o
-resource-dir /usr/bin/../lib/clang/3.4 -D BOOST_TEST_DYN_LINK -D NDEBUG -I
/home/dennis/Coding/Project-OSRM/Include -I /usr/include/luabind -I
/usr/include/lua5.2 -I /usr/include/libxml2 -I /usr/include/osmpbf
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.4/include -internal-externc-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wall -Wunreachable-code -pedantic
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/home/dennis/Coding/Project-OSRM/build -ferror-limit 19 -fmessage-length 175
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o CMakeFiles/OSRM.dir/Library/OSRM_impl.cpp.o -x c++
/home/dennis/Coding/Project-OSRM/Library/OSRM_impl.cpp 
1.   
/home/dennis/Coding/Project-OSRM/Library/../Server/DataStructures/../../DataStructures/StaticRTree.h:340:97:
current parser token ';'
2.   
/home/dennis/Coding/Project-OSRM/Library/../Server/DataStructures/../../DataStructures/StaticRTree.h:69:1:
parsing struct/union/class body 'StaticRTree'
3.   
/home/dennis/Coding/Project-OSRM/Library/../Server/DataStructures/../../DataStructures/StaticRTree.h:320:5:
parsing function body 'Build'
4.   
/home/dennis/Coding/Project-OSRM/Library/../Server/DataStructures/../../DataStructures/StaticRTree.h:320:5:
in compound statement ('{}')
5.   
/home/dennis/Coding/Project-OSRM/Library/../Server/DataStructures/../../DataStructures/StaticRTree.h:334:13:
lambda expression parsing
6.   
/home/dennis/Coding/Project-OSRM/Library/../Server/DataStructures/../../DataStructures/StaticRTree.h:336:13:
in compound statement ('{}')
7.   
/home/dennis/Coding/Project-OSRM/Library/../Server/DataStructures/../../DataStructures/StaticRTree.h:339:17:
in compound statement ('{}')
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://bugs.debian.org/">http://bugs.debian.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/OSRM_impl-574468.cpp
clang: note: diagnostic msg: /tmp/OSRM_impl-574468.sh
clang: note: diagnostic msg: 

********************
make[2]: *** [CMakeFiles/OSRM.dir/Library/OSRM_impl.cpp.o] Fehler 254
make[1]: *** [CMakeFiles/OSRM.dir/all] Fehler 2
make: *** [all] Fehler 2


Generated debug files:
<a href="https://www.dropbox.com/s/cno9ii1z5o0b4cd/OSRM_impl-574468.cpp">https://www.dropbox.com/s/cno9ii1z5o0b4cd/OSRM_impl-574468.cpp</a>
<a href="https://www.dropbox.com/s/t5sfnvt7tain34t/OSRM_impl-574468.sh">https://www.dropbox.com/s/t5sfnvt7tain34t/OSRM_impl-574468.sh</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>