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: "ai.azuma at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Jul 2012 03:12:21 +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
Ai Azuma <ai.azuma at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #5 from Ai Azuma <ai.azuma at gmail dot com> 2012-07-19 03:12:21 UTC ---
Hmm, now I have arrived at the conclusion that non-odr-used variables might
require the definition, depending on compiler options etc., and this PR is
invalid, since there is no guarantee in the specification that
non-odr-used-ness of variables makes the definition unnecessary.
I'm sorry. I created this PR based on the wrong assumption. I should have
created a PR reporting the bug in libstdc++. And thank you for the quick fixes.
Again, thank you for your time.