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

           Summary: clang++ incorrectly accepts instantiating dependent
                    declaration with function type
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Testcase (lifted from [temp.arg.type]p3):
template<class T> struct A {
    static T t;
};
typedef int function();
A<function> a;

clang incorrectly accepts this.  There are also a variety of codegen crashes
possible with variants of this construct.

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