<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 --- - Crash report"
   href="http://llvm.org/bugs/show_bug.cgi?id=18973">18973</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash report
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>pdanilewski@gmail.com
          </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>Trying to compile

template<class T>
struct testclass
{
    template<int I>
    class inner {};
    template<int I>
    void f(inner<I> ) {}
};

template <typename T, int I> using inner = testclass<T>::inner<I>;

int main()
{
    testclass<bool> test;
    test.f(inner<bool,3>());
    return 0;
}

I get the following crash:

clang-3.3:
/localhome/lcygnus/dev/llvm3.3/tools/clang/include/clang/AST/Type.h:547: const
clang::ExtQualsTypeCommonBase *clang::QualType::getCommonPtr() const: Assertion
`!isNull() && "Cannot retrieve a NULL type pointer"' failed.
0  clang-3.3       0x00000000011447d5 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  clang-3.3       0x0000000001144cc3
2  libpthread.so.0 0x00007fe3ca662cb0
3  libc.so.6       0x00007fe3c98a0425 gsignal + 53
4  libc.so.6       0x00007fe3c98a3b8b abort + 379
5  libc.so.6       0x00007fe3c98990ee
6  libc.so.6       0x00007fe3c9899192
7  clang-3.3       0x0000000001c2f123
8  clang-3.3       0x00000000012261a8
9  clang-3.3       0x0000000001220602
10 clang-3.3       0x0000000001219f4d
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 93
11 clang-3.3       0x00000000011ef679
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 249
12 clang-3.3       0x00000000011ef579
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 57
13 clang-3.3       0x000000000126fcf2
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 226
14 clang-3.3       0x00000000012756fb
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 91
15 clang-3.3       0x00000000011690f9
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 713
16 clang-3.3       0x000000000117338b
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 651
17 clang-3.3       0x0000000001170784
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 228
18 clang-3.3       0x0000000001172920
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 800
19 clang-3.3       0x00000000011756a0
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1184
20 clang-3.3       0x000000000115dfff
21 clang-3.3       0x000000000115d5f6
22 clang-3.3       0x00000000013bf193 clang::ParseAST(clang::Sema&, bool, bool)
+ 435
23 clang-3.3       0x000000000115cd42 clang::CodeGenAction::ExecuteAction() +
514
24 clang-3.3       0x000000000131bdc1 clang::FrontendAction::Execute() + 113
25 clang-3.3       0x00000000012fdc1d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 909
26 clang-3.3       0x0000000001147557
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3079
27 clang-3.3       0x0000000000654db4 cc1_main(char const**, char const**, char
const*, void*) + 708
28 clang-3.3       0x0000000000652b02 main + 6066
29 libc.so.6       0x00007fe3c988b76d __libc_start_main + 237
30 clang-3.3       0x0000000000651225
Stack dump:
0.      Program arguments: /usr/local/bin/clang-3.3 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
main.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir
/usr/local/bin/../lib/clang/3.3 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/x86_64-linux-gnu/c++/4.6
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.3/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 /localhome/lcygnus/dev/test/template_alias
-ferror-limit 19 -fmessage-length 240 -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o /tmp/main-zy0rmG.o -x c++ main.cpp
1.      <eof> parser at end of file
2.      main.cpp:12:5: LLVM IR generation of declaration 'main'
3.      main.cpp:12:5: Generating code for declaration 'main'
clang-3.3: error: unable to execute command: Aborted (core dumped)
clang-3.3: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.3: 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-3.3: 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>