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++/33750] initialization of non-integral member constant not rejected



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


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