This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Jul 2012 09:54:18 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-53954-4@http.gcc.gnu.org/bugzilla/>
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.