This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

duplicate symbols emitted to assembler code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]