[LLVMbugs] [Bug 2524] New: bogus error when taking the address of a noproto function decl
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Jul 7 07:42:59 PDT 2008
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: unassignedbugs at nondot.org
ReportedBy: nunoplopes at sapo.pt
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list