------- Comment #2 from pinskia at gcc dot gnu dot org 2007-07-09 12:16 ------- I thought we already decided the other way around should not error or warn.
>From gcc.dg/local1.c which is testing this exactly: C90 6.1.2.2 [as corrected by TC1], C99 6.2.2: For an identifier declared with the storage-class specifier extern in a scope in which a prior declaration of that identifier is visible, if the prior declaration specifies internal or external linkage, the linkage of the identifier at the later daclaration is the same as the linkage specified at the prior declaration. If no prior declaration is visible, or if the prior declaration specifies no linkage, then the identifer has external linkage. *** This bug has been marked as a duplicate of 14366 *** *** This bug has been marked as a duplicate of 14366 *** -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32692