Redeclaration Question
Curt Wohlgemuth
curtw at hpcllca.HP.COM
Thu Feb 2 04:39:59 AEST 1989
I have a question on a possible constraint violation in an object
redeclaration.
Section 3.5 of the 7 Dec dpANS says, "If an identifier has no linkage,
there shall be no more than one declaration of the identifier (in a
declarator or a type specifier) with the same scope and in the same name
space, except for tags..."
Is this then a constraint violation? Seems to me that it is...
main()
{
extern int i;
int i;
}
More information about the Comp.std.c
mailing list