Skip to content

clang is less permissive than gcc in accepting function redefinitions #2958

@llvmbot

Description

@llvmbot
Bugzilla Link 2586
Resolution INVALID
Resolved on Mar 12, 2010 00:57
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @DougGregor

Extended Description

gcc accepts the following code with a warning, whereas clang rejects
it.

void foo(void *);

foo(void *pfile) {
}

gcc even accepts

void foo(void *, int);

foo(void *pfile) {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"invalidResolved as invalid, i.e. not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions