[Bug c++/53954] [C++11] Undefined reference to non-odr-used static const member variable of variadic class template in DSO with -flto and -Wl,--export-dynamic

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 16 09:54:00 GMT 2012


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-16 09:54:18 UTC ---
(In reply to comment #0)
> When a DSO is created from this code with `-std=c++11', `-lfto' and
> `-Wl,--export-dynamic' options, it requires the definition of
> `std::allocator_traits<std::allocator<int> >::__construct_helper<int,
> int>::value'.

Ah, that's actually a bug in my libstdc++ code, the definition should be
present.



More information about the Gcc-bugs mailing list