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

             Bug #: 14726
           Summary: _Generic does not work as expected with Objective-C
                    types
           Product: clang
           Version: 3.1
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


My understanding of C11's _Generic was that the following code should print
"1". It does print "0" (in Apple's current clang).

id obj;
printf("%d\n", _Generic( obj, id: 1, default: 0));

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