[LLVMbugs] [Bug 9388] New: selfhost segfaults in NestedNameSpecifier::getPrefix

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 3 04:36:23 PST 2011


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

           Summary: selfhost segfaults in NestedNameSpecifier::getPrefix
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: benny.kra at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


This looks like a fallout from Doug's recent NestedNameSpecifier work.

$ cat t.cc
namespace std {
    template<typename T>     class vector     {
    };
}
template<typename T> static void foo(std::vector<T*> &V) {
    __PRETTY_FUNCTION__;
}
void bar(std::vector<int*> &Blocks) {
    foo(Blocks);
}

$ clang++ t.cc
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

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