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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to