-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"duplicateResolved as duplicateResolved as duplicate
Description
Bugzilla Link | 3341 |
Resolution | DUPLICATE |
Resolved on | Mar 12, 2010 00:59 |
Version | unspecified |
OS | Linux |
Reporter | LLVM Bugzilla Contributor |
CC | @efriedma-quic |
Extended Description
--->
/* from c torture. */
inline extern int foo () { return 0; }
inline extern int bar () { return 0; }
inline static int bar () { return foo(); }
---<
$ gcc -W -Wall -pedantic -c -o file.o file.c
no problem
$ clang file.c
20021120-1.c:4:19: error: redefinition of 'bar'
inline static int bar () { return foo(); }
^
20021120-1.c:3:19: note: previous definition is here
inline extern int bar () { return 0; }
^
2 diagnostics generated.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"duplicateResolved as duplicateResolved as duplicate