This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33750] initialization of non-integral member constant not rejected
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2007 16:19:49 -0000
- Subject: [Bug c++/33750] initialization of non-integral member constant not rejected
- References: <bug-33750-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from gdr at cs dot tamu dot edu 2007-10-12 16:19 -------
Subject: Re: initialization of non-integral member constant not rejected
"rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| We should also warn by default with -std=c++98 or -std=c++0x.
I agree that we should do something for -std=c++98.
For -std=c++0x, I introduced the notion of `literal type' in C++0x so
that you can actually do more folding at compile time (including
objects of class types), and you can initialize constexpr static data
member objects of literal type in class definition.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33750