http://llvm.org/bugs/show_bug.cgi?id=8269
Summary: clang produces incorrect fixit for invalid main decl.
Product: new-bugs
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
% echo unsigned int main(); | clang -x c -
<stdin>(1) : error: 'main' must return 'int'
unsigned int main();
^~~~~~~~
int
1 error generated.
This would be "int int main();", which is even more invalid.
--
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