[Bug c++/34166] -fleading-underscore duplicate underscore in some template cases
shockenhull at niceberg dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 28 22:23:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list