This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44673] static const variable works in if/else, fails at linking in ternary
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2010 10:38:31 -0000
- Subject: [Bug c++/44673] static const variable works in if/else, fails at linking in ternary
- References: <bug-44673-19370@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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