[LLVMbugs] [Bug 8269] New: clang produces incorrect fixit for invalid main decl.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 30 23:36:47 PDT 2010


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: unassignedbugs at nondot.org
        ReportedBy: bigcheesegs at gmail.com
                CC: llvmbugs at cs.uiuc.edu


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



More information about the llvm-bugs mailing list