[LLVMbugs] [Bug 14211] New: Crash for explicit instantiation of overloaded template function within class template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 30 03:45:23 PDT 2012


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

             Bug #: 14211
           Summary: Crash for explicit instantiation of overloaded
                    template function within class template
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ulfalizer at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Compiling the following crashes clang:

template <class>
struct A {
    void f(int); /* No crash if this declaration is removed or moved
                    after the template declaration for f. */
    template<class T2> void f(T2); /* Still crashes if a definition is
                                      provided to make the program valid. */
};
template void A<int>::f(int);

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