[LLVMbugs] [Bug 10080] New: Crash on ill-formed alias-template code causing a dependent function declaration

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 4 04:24:31 PDT 2011


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

           Summary: Crash on ill-formed alias-template code causing a
                    dependent function declaration
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: schaub.johannes at googlemail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


This code crashes clang (trunk 132184):

template<typename T> using Fn = void(T); 
template<typename T> Fn<T> f; // ill-formed!
int main() { f<int>(0); }

The line marked with "ill-formed" should be rejected, according to FDIS,
14.3.1p3.

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