[LLVMbugs] [Bug 2746] New: handling casts to union transparently

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Sep 1 15:32:11 PDT 2008


           Summary: handling casts to union transparently
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu

transparently casting to union is not handled by clang. Note that this is not
the same as PR2015.

test case (gcc accepts it, but produces a warning with -pedantic):

union rqinfou {
        struct bio *bio;

int vinumstart(struct bio *bio) {
        logrq((union rqinfou) bio, bio);

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