Skip to content

clang produces incorrect fixit for invalid main decl. #8641

Closed
@Bigcheese

Description

@Bigcheese
Bugzilla Link 8269
Resolution FIXED
Resolved on Oct 31, 2011 13:53
Version trunk
OS All
CC @dwblaikie

Extended Description

% echo unsigned int main(); | clang -x c -
(1) : error: 'main' must return 'int'
unsigned int main();
^~~~~~~~
int
1 error generated.

This would be "int int main();", which is even more invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions