This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]