[LLVMbugs] [Bug 2042] New: clang incorrectly considers f(){} to have a prototype
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Feb 15 08:35:22 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=2042
Summary: clang incorrectly considers f(){} to have a prototype
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Per http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_317.htm, the following:
void f(){}
void g(){if(0)f(1);}
is valid, so clang should not print out an error.
--
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