This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17042] [3.5 regression] Duplicated symbol in assembly output
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Aug 2004 23:44:09 -0000
- Subject: [Bug c++/17042] [3.5 regression] Duplicated symbol in assembly output
- References: <20040815232958.17042.carlo@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-15 23:44 -------
Reduced to:
struct A
{ A(); ~A(); };
A a;
extern "C" { void* __dso_handle __attribute__ ((__weak__)); }
void f()
{ __dso_handle = 0; }
Note the code it self is not right for what you want to do, instead it should be:
extern void* __dso_handle __attribute__ ((__weak__));
But the C++ front-end should be picking up the user variable and not making a new one.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-08-15 23:44:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17042