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

             Bug #: 12064
           Summary: clang marks globals as used in lambda in unused
                    default argument
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Testcase:
template<typename T> T f() { return "Cause Error"; }
void g(void (*)() = []{ return f<void>(); });

As far as I can tell, this shouldn't cause an error, although the standard
isn't especially clear here...

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