cc allows external identifiers not unique in first 7 characters
utzoo!utcsrgv!utcsstat!geoff
utzoo!utcsrgv!utcsstat!geoff
Thu Apr 28 22:26:15 AEST 1983
The v7 C compiler does not complain about definitions of external
identifiers that are not unique in their first 7 characters. The
assembler does complain, giving slightly cryptic `m' diagnostics.
Since many users never use the assembler directly, one would like the C
compiler to diagnose this problem within a single source file. For
conflicts across source files, the loader will complain quite clearly.
A recent net.sources program contained code like
char *format_a = "a";
char *format_b = "b";
char *format_c = "c";
These are all truncated to `format_' by the compiler, but it fails to
notice that they are identical after truncation.
Geoff Collyer, U. of Toronto
More information about the Net.bugs.v7
mailing list