This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34166] -fleading-underscore duplicate underscore in some template cases
- From: "shockenhull at niceberg dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2007 22:23:02 -0000
- Subject: [Bug c++/34166] -fleading-underscore duplicate underscore in some template cases
- References: <bug-34166-15399@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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