<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 --- - Segmentation fault in clang::Sema::BuildExpressionFromIntegralTemplateArgument"
   href="http://llvm.org/bugs/show_bug.cgi?id=17084">17084</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segmentation fault in clang::Sema::BuildExpressionFromIntegralTemplateArgument
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.3
          </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>Christian.Stoitner@gmx.net
          </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>Stack Trace:
0  libLLVM-3.3.so  0x00007fc90b84a0a2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  libLLVM-3.3.so  0x00007fc90b849d29
2  libpthread.so.0 0x00007fc90b0aac20
3  clang           0x0000000000bafc4c
clang::Sema::BuildExpressionFromIntegralTemplateArgument(clang::TemplateArgument
const&, clang::SourceLocation) + 60
4  clang           0x0000000000c1039d
5  clang           0x0000000000c106e9
6  clang           0x0000000000c0794b
7  clang           0x0000000000c1b0ef clang::Sema::SubstExpr(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&) + 79
8  clang           0x0000000000ba2077
9  clang           0x0000000000bbd81e
clang::Sema::CheckTemplateArgumentList(clang::TemplateDecl*,
clang::SourceLocation, clang::TemplateArgumentListInfo&, bool,
llvm::SmallVectorImpl<clang::TemplateArgument>&, bool*) + 2910
10 clang           0x0000000000bbe4d3
clang::Sema::CheckTemplateIdType(clang::TemplateName, clang::SourceLocation,
clang::TemplateArgumentListInfo&) + 387
11 clang           0x00000000009af4e0
clang::Sema::ActOnCXXNestedNameSpecifier(clang::Scope*, clang::CXXScopeSpec&,
clang::SourceLocation, clang::OpaquePtr<clang::TemplateName>,
clang::SourceLocation, clang::SourceLocation,
llvm::MutableArrayRef<clang::ParsedTemplateArgument>, clang::SourceLocation,
clang::SourceLocation, bool) + 224
12 clang           0x00000000009474a5
clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&,
clang::OpaquePtr<clang::QualType>, bool, bool*, bool, clang::IdentifierInfo**)
+ 4373
13 clang           0x0000000000908a4e
clang::Parser::TryAnnotateCXXScopeToken(bool) + 94
14 clang           0x00000000009189a7
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 6471
15 clang           0x0000000000922343
clang::Parser::ParseParameterDeclarationClause(clang::Declarator&,
clang::ParsedAttributes&, llvm::SmallVector<clang::DeclaratorChunk::ParamInfo,
16u>&, clang::SourceLocation&) + 803
16 clang           0x0000000000923539
clang::Parser::ParseFunctionDeclarator(clang::Declarator&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&, bool, bool) + 1545
17 clang           0x00000000009242c9
clang::Parser::ParseDirectDeclarator(clang::Declarator&) + 1497
18 clang           0x000000000091c867
clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void
(clang::Parser::*)(clang::Declarator&)) + 199
19 clang           0x000000000091cfa2
clang::Parser::ParseDeclarator(clang::Declarator&) + 18
20 clang           0x000000000092e58a
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::AttributeList*, clang::Parser::ParsedTemplateInfo const&,
clang::ParsingDeclRAIIObject*) + 682
21 clang           0x0000000000930c54
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*) + 2116
22 clang           0x0000000000932738
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&) + 2936
23 clang           0x0000000000917d34
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 3284
24 clang           0x0000000000974878
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 840
25 clang           0x0000000000975b8a
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 682
26 clang           0x000000000097602d
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 141
27 clang           0x0000000000921fe6
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 598
28 clang           0x000000000090e502
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1890
29 clang           0x000000000092bf3a
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::BalancedDelimiterTracker&) + 378
30 clang           0x000000000092c606 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1590
31 clang           0x0000000000922010
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 640
32 clang           0x000000000090e502
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1890
33 clang           0x000000000090e6ef
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 191
34 clang           0x0000000000906636 clang::ParseAST(clang::Sema&, bool, bool)
+ 262
35 clang           0x0000000000649ec9 clang::FrontendAction::Execute() + 185
36 clang           0x000000000062aa65
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 277
37 clang           0x000000000061437a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1514
38 clang           0x000000000060f588 cc1_main(char const**, char const**, char
const*, void*) + 1112
39 clang           0x000000000060d831 main + 8065
40 libc.so.6       0x00007fc90a7f4b4d __libc_start_main + 237
41 clang           0x000000000060e651
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
test.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -target-linker-version 2.23.1 -g -coverage-file
/media/share/Projects/coding/OpenGLTest/newWorkspace/qt-5-1-0-debug/.obj/test/src/test.cpp.o
-resource-dir /usr/bin/../lib/clang/3.3 -isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/mkspecs/linux-g++-64
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include/QtCore
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include
-isystem
/media/share/Projects/coding/OpenGLTest/newWorkspace/qt-5-1-0-debug/GeneratedFiles/test
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include/QtGui/5.1.0/QtGui
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include/QtGui
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include/QtOpenGL/5.1.0/QtOpenGL
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include/QtOpenGL
-isystem /media/share/Projects/coding/OpenGLTest/newWorkspace/libs/eigen/3.2.0
-isystem
/media/share/Projects/coding/OpenGLTest/newWorkspace/libs/oglplus/0.35.0/include
-D QT_CORE_LIB -D QT_GUI_LIB -D QT_OPENGL_LIB -internal-isystem
/usr/include/c++/v1 -internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.3/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Wall -Wextra -Wextra -Weffc++ -pedantic
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/media/share/Projects/coding/OpenGLTest/newWorkspace -ferror-limit 19
-fmessage-length 0 -fvisibility default -ftrapv -mstackrealign
-fobjc-runtime=gcc -fobjc-default-synthesize-properties -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -backend-option
-vectorize-loops -o
/media/share/Projects/coding/OpenGLTest/newWorkspace/qt-5-1-0-debug/.obj/test/src/test.cpp.o
-x c++ /media/share/Projects/coding/OpenGLTest/newWorkspace/src/test.cpp 
1.     
/media/share/Projects/coding/OpenGLTest/newWorkspace/src/base/eigenUniformCrash.hpp:40:40:
current parser token 'Scalar'
2.     
/media/share/Projects/coding/OpenGLTest/newWorkspace/src/base/eigenUniformCrash.hpp:14:1:
parsing namespace 'oglplus'
3.     
/media/share/Projects/coding/OpenGLTest/newWorkspace/src/base/eigenUniformCrash.hpp:28:1:
parsing struct/union/class body 'UniformSpecOps'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-pc-linux-gnu
Thread model: posix</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>