[Bug c++/33750] initialization of non-integral member constant not rejected

gdr at cs dot tamu dot edu gcc-bugzilla@gcc.gnu.org
Fri Oct 12 16:19:00 GMT 2007



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



More information about the Gcc-bugs mailing list