[Bug c++/34166] -fleading-underscore duplicate underscore in some template cases
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-11-28 22:34 --- This is not a bug since you did not compile libstdc++ with -fleading-underscore. There are some headers with extern template. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34166
[Bug c++/34166] -fleading-underscore duplicate underscore in some template cases
--- Comment #3 from shockenhull at niceberg dot com 2007-11-28 22:23 --- the problem is in the pre-compiled c++ library work around: using option -D_GLIBCXX_EXTERN_TEMPLATE=0 disable pre-compiled templates in the c++ headers and force correct instanciation when -fleading-underscore is used thanks to Andrew Pinski for pointing to the "extern template" feature. maybe overriding the platform's defaut underscore prefix should define _GLIBCXX_EXTERN_TEMPLATE=0 if not overriden explicitly so the glitch wont come up? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34166
[Bug c++/34166] -fleading-underscore duplicate underscore in some template cases
--- Comment #2 from shockenhull at niceberg dot com 2007-11-23 20:21 --- this bug seem to be related to the fact that std::string's name mangling is optimized by shortening it to a special encoding which might bypass the underscore prefix option is there an option to disable the special case encoding for std::string ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34166
[Bug c++/34166] -fleading-underscore duplicate underscore in some template cases
--- Comment #1 from shockenhull at niceberg dot com 2007-11-21 18:02 --- Created an attachment (id=14598) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14598&action=view) .ii file that produce error -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34166