[Bug c++/13051] problem with static member and ?: operator

mihai_preda at yahoo dot com gcc-bugzilla@gcc.gnu.org
Fri Nov 14 15:47:00 GMT 2003


------- 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



More information about the Gcc-bugs mailing list