This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
duplicate symbols emitted to assembler code
- To: egcs-bugs at cygnus dot com
- Subject: duplicate symbols emitted to assembler code
- From: Bob Sidebotham <rns at fore dot com>
- Date: Thu, 05 Feb 1998 15:38:17 -0500
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