This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13051] problem with static member and ?: operator
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2003 14:53:41 -0000
- Subject: [Bug c++/13051] problem with static member and ?: operator
- References: <20031114144635.13051.mihai_preda@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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