<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 --- - Compiler crash triggered upon parsing template var use (C++1y)"
   href="http://llvm.org/bugs/show_bug.cgi?id=20120">20120</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compiler crash triggered upon parsing template var use (C++1y)
          </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>MacOS X
          </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>C++1y
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>contact+clang@raphael.poss.name
          </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>Created <span class=""><a href="attachment.cgi?id=12701" name="attach_12701" title="Command used to run clang++">attachment 12701</a> <a href="attachment.cgi?id=12701&action=edit" title="Command used to run clang++">[details]</a></span>
Command used to run clang++

Assertion failed: ((!Canon.isNull() || T.isDependent() ||
::anyDependentTemplateArguments(Args, NumArgs, InstantiationDependent)) && "No
canonical type for non-dependent class template specialization"), function
TemplateSpecializationType, file Type.cpp, line 1994.
0  libLLVM-3.4.dylib 0x0000000103760515 llvm::sys::PrintStackTrace(__sFILE*) +
37
1  libLLVM-3.4.dylib 0x0000000103761393 SignalHandler(int) + 803
2  libSystem.B.dylib 0x00007fff84cd51ba _sigtramp + 26
3  clang             0x0000000100510a2e clang::RecursiveASTVisitor<(anonymous
namespace)::DependencyChecker>::TraverseFloatingLiteral(clang::FloatingLiteral*)
+ 100
4  libLLVM-3.4.dylib 0x000000010263e382 __assert_rtn + 66
5  clang             0x0000000100a3f97f
clang::TemplateSpecializationType::TemplateSpecializationType(clang::TemplateName,
clang::TemplateArgument const*, unsigned int, clang::QualType, clang::QualType)
+ 387
6  clang             0x000000010090e310
clang::ASTContext::getCanonicalTemplateSpecializationType(clang::TemplateName,
clang::TemplateArgument const*, unsigned int) const + 534
7  clang             0x000000010090e524
clang::ASTContext::getTemplateSpecializationType(clang::TemplateName,
clang::TemplateArgument const*, unsigned int, clang::QualType) const + 294
8  clang             0x000000010090e748
clang::ASTContext::getTemplateSpecializationType(clang::TemplateName,
clang::TemplateArgumentListInfo const&, clang::QualType) const + 386
9  clang             0x0000000100523664
clang::Sema::CheckTemplateIdType(clang::TemplateName, clang::SourceLocation,
clang::TemplateArgumentListInfo&) + 1562
10 clang             0x000000010032804e
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) + 1466
11 clang             0x00000001002befff
clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&,
clang::OpaquePtr<clang::QualType>, bool, bool*, bool, clang::IdentifierInfo**)
+ 1647
12 clang             0x00000001002df940
clang::Parser::TryAnnotateTypeOrScopeToken(bool, bool) + 1162
13 clang             0x00000001002dc40c
clang::Parser::isCXXDeclarationSpecifier(clang::Parser::TPResult, bool*) + 2480
14 clang             0x00000001002dd570
clang::Parser::isCXXTypeId(clang::Parser::TentativeCXXTypeIdContext, bool&) +
52
15 clang             0x00000001002c19d0 clang::Parser::isTypeIdInParens(bool&)
+ 28
16 clang             0x00000001002b8783
clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool,
bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) + 1125
17 clang             0x00000001002b4b6b
clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) + 1423
18 clang             0x00000001002b60e9
clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) +
45
19 clang             0x00000001002b6176
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 82
20 clang             0x00000001002b6959
clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 17
21 clang             0x00000001002d2d38 clang::Parser::ParseExprStatement() +
68
22 clang             0x00000001002d32ab
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 1065
23 clang             0x00000001002d36a3
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 145
24 clang             0x00000001002d3aab
clang::Parser::ParseCompoundStatementBody(bool) + 877
25 clang             0x00000001002d3f18
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 370
26 clang             0x00000001002e1a14
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
2182
27 clang             0x000000010029e9f5
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 493
28 clang             0x00000001002e1dae
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 786
29 clang             0x00000001002e1e4e
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 132
30 clang             0x00000001002e28bd
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 2607
31 clang             0x00000001002e2cb5
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 321
32 clang             0x000000010029374f clang::ParseAST(clang::Sema&, bool,
bool) + 514
33 clang             0x000000010024ad79 clang::CodeGenAction::ExecuteAction() +
1229
34 clang             0x0000000100056e33 clang::FrontendAction::Execute() + 153
35 clang             0x00000001000375b4
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 540
36 clang             0x000000010000a159
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2793
37 clang             0x000000010000475d cc1_main(char const**, char const**,
char const*, void*) + 585
38 clang             0x00000001000079ad main + 822
39 clang             0x00000001000044a0 start + 52
40 clang             0x000000000000002d start + 4294949825
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.4/bin/clang -cc1 -triple
x86_64-apple-macosx10.6.0 -emit-obj -mrelax-all -disable-free -main-file-name
t.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 136 -resource-dir
/opt/local/libexec/llvm-3.4/bin/../lib/clang/3.4 -std=c++1y -fdeprecated-macro
-fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 0
-stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.6.0
-fencode-extended-block-signature -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -vectorize-slp -o
/var/folders/mT/mTDQDq7iF9OAXWoKl2NnSU+++TU/-Tmp-/t-e7f9c8.o -x c++ t.cc 
1.    t.cc:3:13: current parser token '&'
2.    t.cc:2:16: parsing function body 'main'
3.    t.cc:2:16: in compound statement ('{}')
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-apple-darwin10.8.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</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:
/var/folders/mT/mTDQDq7iF9OAXWoKl2NnSU+++TU/-Tmp-/t-56591e.cpp
clang: note: diagnostic msg:
/var/folders/mT/mTDQDq7iF9OAXWoKl2NnSU+++TU/-Tmp-/t-56591e.sh
clang: note: diagnostic msg: 

********************</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>