This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]