[Bug c++/37175] Undefined reference to static const member in var = condition ? X::A : X::B
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Wed Aug 20 09:59:00 GMT 2008
------- Comment #1 from paolo dot carlini at oracle dot com 2008-08-20 09:58 -------
Yes, because the code is invalid, a *definition* of ABC and DEF is missing: add
const int X::ABC; const int X::DEF; after your declaration of X and things will
work.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37175
More information about the Gcc-bugs
mailing list