[LLVMbugs] [Bug 14726] New: _Generic does not work as expected with Objective-C types

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 27 13:18:29 PST 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: clang at nikopol.de
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list