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

           Summary: bogus error when taking the address of a noproto
                    function decl
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


clang produces a bogus error with the following code, and gcc does not:

extern void vgPlain_x86_linux_SUBST_FOR_sigreturn;

void build_sigframe() {
        int x = (int)&vgPlain_x86_linux_SUBST_FOR_sigreturn;
}


b.c:4:15: error: address expression must be an lvalue or a function designator
        int x = (int)&vgPlain_x86_linux_SUBST_FOR_sigreturn;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 diagnostic generated.


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