http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58178
Bug ID: 58178 Summary: variant function name was used for user defined constructor Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com test case: cat t.cc #include <stdio.h> struct base { int x; base() { x= 2;}; }; struct A { static int x; struct B :base{ void f() { x++; printf("x= %d\n",x); } }; }; int A::x = 12; main() { A::B z; z.f(); } /pkg/gnu/bin/g++ -R/pkg/gnu/lib -R/pkg/gnu/lib/amd64 -g t.cc mandelstam.us.oracle.com 2528> nm a.out | grep base [95] | 134548914| 14|FUNC |WEAK |0 |11 |_ZN4baseC2Ev base class has user defined constructor, I'm expecting _ZN4baseC1Ev from nm dump