[LLVMbugs] [Bug 3894] New: clang rejects address of void

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Mar 27 11:30:56 PDT 2009


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

           Summary: clang rejects address of void
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu


Clang rejects this, GCC doesn't:
extern void y;
void a() {
void *x = &y;
}

t.c:5:11: error: address expression must be an lvalue or a function designator
void *x = &y;
          ^~


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