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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]
            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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to