[LLVMbugs] [Bug 3000] New: clang: used type 'union u' where arithmetic or pointer type is required

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Oct 31 19:09:21 PDT 2008


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

           Summary: clang: used type 'union u' where arithmetic or pointer
                    type is required
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: richard at godbee.net
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 2778


union u { int a, b; };

void f2(union u);

void f1() {
    f2((union u) 0);
}


<stdin>:6:8: error: used type 'union u' where arithmetic or pointer type is
required
    f2((union u) 0);
       ^         ~
1 diagnostic generated.


llvm/clang r58543 (trunk)


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