[LLVMbugs] [Bug 10396] New: clang crashes during name mangling with <nullptr> as non-type template parameter

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 18 13:15:48 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10396

           Summary: clang crashes during name mangling with <nullptr> as
                    non-type template parameter
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jonathan.sauer at gmx.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=6902)
 --> (http://llvm.org/bugs/attachment.cgi?id=6902)
Complete crash log

The following program crashes clang r135379:

template <int*>
void bar();

int main(int, char**)
{
  bar<nullptr>();
}


This results in (full crash log attached):

clang -std=c++0x clang.cpp 
0  clang             0x0000000101903bc2 PrintStackTrace(void*) + 34
1  clang             0x0000000101904a13 SignalHandler(int) + 707
2  libSystem.B.dylib 0x00007fff84b2866a _sigtramp + 26
3  libSystem.B.dylib 000000000000000000 _sigtramp + 2068674992
4  clang             0x0000000100b3e14f
clang::TemplateArgument::isInstantiationDependent() const + 223
5  clang             0x0000000100b00d99 (anonymous
namespace)::CXXNameMangler::mangleTemplateArg(clang::NamedDecl const*,
clang::TemplateArgument) + 57
6  clang             0x0000000100b017ed (anonymous
namespace)::CXXNameMangler::mangleTemplateArgs(clang::TemplateParameterList
const&, clang::TemplateArgumentList const&) + 173
7  clang             0x0000000100affe1f (anonymous
namespace)::CXXNameMangler::mangleName(clang::NamedDecl const*) + 399
[...]

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list