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++/44673] static const variable works in if/else, fails at linking in ternary



------- Comment #13 from redi at gcc dot gnu dot org  2010-06-26 10:38 -------
(In reply to comment #11)
> definition

Bah, that entity is the "fi" ligature, it should say definition


(In reply to comment #12)
> So is g++ accepting invalid code?

Yes, but it's a violation of the ODR, no diagnostic is required (it's not
possible to tell until link time that there's no definition.) 

There are DOZENS of duplicates of this bug, they are all invalid.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44673


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