http://sourceware.org/bugzilla/show_bug.cgi?id=14344
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2012-07-13 17:36:43 UTC --- Created attachment 6527 --> http://sourceware.org/bugzilla/attachment.cgi?id=6527 A testcase [hjl@gnu-6 pr14344]$ nm --demangle gcc-4.7 | grep const 000000000040081a W bool check<two::c2<int const*> >(two::c2<int const*>*) 0000000000400864 W two::c2<int const*>::val() 000000000040077c W two::c2<int const*>::c2(int const*) 000000000040077c W two::c2<int const*>::c2(int const*) 00000000004008aa W two::c2<int const*>::~c2() 00000000004008aa W two::c2<int const*>::~c2() [hjl@gnu-6 pr14344]$ readelf --debug-dump=gdb_index gcc-4.7 | grep const readelf: Warning: Version 5 does not include inlined functions. readelf: Warning: Version 6 does not include symbol attributes. [139] two::c2<const int*>::c2: 0 [no symbol information] [326] check<two::c2<const int*> >: 0 [no symbol information] [468] two::c2<const int*>::val: 0 [no symbol information] [616] two::c2<const int*>::~c2: 0 [no symbol information] [752] two::c2<const int*>: 0 [no symbol information] [hjl@gnu-6 pr14344]$ For GCC 4.7, --gdb-index generates different demangled symbol names. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils