[LLVMbugs] [Bug 6625] New: Mangler crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 15 21:53:48 PDT 2010


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

           Summary: Mangler crash
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


testcase:

--------------------
template<class T>
struct foo {
  typedef T X;
};
class bar {
  typedef foo<int> baz;
};
template <class zed>
void f(const typename zed::baz::X&);
void g() {
  f<bar>( 0);
}
-------------------

gdb --args ~/llvm/llvm-build/Debug/bin/clang -cc1 -S content-ads_unittest.ii

...

#0  0x0000000000472a86 in clang::Type::getTypeClass (this=0x0) at
/usr/local/google/home/espindola/llvm/clang/lib/Frontend/../../include/clang/AST/Type.h:788
#1  0x0000000000472c9d in clang::TemplateSpecializationType::classof (T=0x0) at
/usr/local/google/home/espindola/llvm/clang/lib/Frontend/../../include/clang/AST/Type.h:2438
#2  0x000000000047b52d in llvm::isa_impl<clang::TemplateSpecializationType,
clang::Type> (Val=...) at
/usr/local/google/home/espindola/llvm/llvm/include/llvm/Support/Casting.h:54
#3  0x000000000047b547 in
llvm::isa_impl_wrap<clang::TemplateSpecializationType, clang::Type const,
clang::Type const>::doit (Val=...)
    at
/usr/local/google/home/espindola/llvm/llvm/include/llvm/Support/Casting.h:71
#4  0x000000000047b561 in
llvm::isa_impl_cl<clang::Type>::isa<clang::TemplateSpecializationType>
(Val=...) at
/usr/local/google/home/espindola/llvm/llvm/include/llvm/Support/Casting.h:83
#5  0x0000000000590189 in llvm::isa_impl_cl<clang::Type
const>::isa<clang::TemplateSpecializationType> (Val=...) at
/usr/local/google/home/espindola/llvm/llvm/include/llvm/Support/Casting.h:92
#6  0x00000000005901a3 in llvm::isa_impl_cl<clang::Type
const*>::isa<clang::TemplateSpecializationType> (Val=0x0) at
/usr/local/google/home/espindola/llvm/llvm/include/llvm/Support/Casting.h:101
#7  0x00000000005901c0 in llvm::isa<clang::TemplateSpecializationType,
clang::Type const*> (Val=@0x7fffffff9c28) at
/usr/local/google/home/espindola/llvm/llvm/include/llvm/Support/Casting.h:116
#8  0x00000000005926eb in llvm::dyn_cast<clang::TemplateSpecializationType,
clang::Type const*> (Val=@0x7fffffff9c28) at
/usr/local/google/home/espindola/llvm/llvm/include/llvm/Support/Casting.h:226
#9  0x000000000058e4eb in mangleType (this=0x7fffffff9ea0, T=0x2149390) at
/usr/local/google/home/espindola/llvm/clang/lib/CodeGen/Mangle.cpp:1150

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