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: "mihai_preda at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2003 15:47:51 -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 mihai_preda at yahoo dot com 2003-11-14 15:47 -------
I know that the static inside the class is only a declaration, and not a definition.
But it seems that, in this situation, a definition should not be needed at all.
That's why I gave the "if" alternative (in the commented block) which links just
fine without any definition of the static members.
What I consider as a bug is the different behavior of the "?:" from the "if"
equivalent. IMO the "?:" should behave the same way "if" does ("if" doesn't
require the definition).
Thanks
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13051