[Bug c++/17042] [3.5 regression] Duplicated symbol in assembly output
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Aug 15 23:44:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list