[Bug c++/40068] GCC fails to apply dllexport attribute to typeinfo.

2009-05-08 Thread dave dot korn dot cygwin at gmail dot com


--- Comment #1 from dave dot korn dot cygwin at gmail dot com  2009-05-08 
11:53 ---
Created an attachment (id=17826)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17826action=view)
Simple testcase

It doesn't get much more trivial than this.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40068



[Bug c++/40068] GCC fails to apply dllexport attribute to typeinfo.

2009-05-08 Thread dave dot korn dot cygwin at gmail dot com


--- Comment #2 from dave dot korn dot cygwin at gmail dot com  2009-05-08 
11:55 ---
To reproduce the bug, compile the attached testcase

g++-4 -fpreprocessed -S vti.ii

and view the very end of the .s file emitted:

.section .drectve
.ascii  -export:_ZTV12XMLException,data
.ascii  -export:_ZN12XMLExceptionD2Ev
.ascii  -export:_ZN12XMLExceptionD1Ev
.ascii  -export:_ZN12XMLExceptionD0Ev
.ascii  -export:_ZN12XMLExceptionC1Ev
.ascii  -export:_ZN12XMLExceptionC2Ev

Everything gets exported except the typeinfo.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40068