duplicate symbols emitted to assembler code
Bob Sidebotham
rns@fore.com
Thu Feb 5 12:36:00 GMT 1998
The enclosed program produces the following message:
/tmp/cca25786.s: Assembler messages:
/tmp/cca25786.s:15: Error: Ignoring attempt to re-define symbol
/tmp/cca25786.s:15: Error: Rest of line ignored. First ignored character is `,'.
Here's the program:
class error {
public:
error(int) {}
};
class foo {
const error x = 1;
};
class bar {
const error x = 1;
};
The relevant assembler output is:
.local x
.comm x,1,1
.local x
.comm x,1,1
Compiler version:
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
Bob Sidebotham
rns@fore.com
More information about the Gcc-bugs
mailing list