[Bug c++/13051] problem with static member and ?: operator
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Fri Nov 14 14:53:00 GMT 2003
------- Additional Comments From bangerth at dealii dot org 2003-11-14 14:53 -------
This is one of the most often reported non-bugs. You need to
have a _definition_ of the static member, not only a declaration.
Add the lines
const int A::a;
const int A::b;
to your program and everything should be ok.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13051
More information about the Gcc-bugs
mailing list