Linkfailures on amd64 with -fvisibility-inlines-hidden and the libstdc++ headers or symbols

Andreas Pokorny andreas.pokorny@gmx.de
Fri Jan 28 06:49:00 GMT 2005


On Thu, Jan 27, 2005 at 08:41:34PM -0600, Benjamin Kosnik <benjamin.kosnik@gmail.com> wrote:
> Hey. Can you open up a libstdc++ bug in gcc bugzilla with this? Please
> include the other links you've noticed, and the testcase.
> 
> -benjamin
I reduced my example, it now only includes these lines:
template<typename CharT>
struct VisTest
{
    inline VisTest ();
};
template<typename CharT>
inline VisTest<CharT>::VisTest()
{}
extern template class VisTest<char>;  // It works if we drop that line
int some_function( int do_something ) __attribute__
((visibility("default")));
int some_function( int do_something )
{
    VisTest<char> a;
      return 0;
}

The bug can befound at:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664

Regards 
Andreas Pokorny

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20050128/a4c3acb3/attachment.sig>


More information about the Libstdc++ mailing list