http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-07-12 07:13:56 UTC --- You have two different definitions of A::A. Since you have two, only one is going to be picked up which one is depends on the link order in the case of the GNU LD but it could be any random one.