This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix PR c++/30759: Initializer-list accepted for object of non-POD type


On Thu, 31 May 2007, Simon Martin wrote:

| Hello Gabriel, Mark.
| 
| > On Mon, 28 May 2007, Mark Mitchell wrote:
| > [...]
| > | Better to say "in C++98" instead of "except in C++0x", since presumably
| > | this will also be allowed in C++1x, C++2x, etc. :-)
| > 
| > I agree; and I hope the test for the flag is adjusted accordingly.
| I've looked for an equivalent of flag_cpp0x for C++98 and I did not find
| one.
| 
| The attached patch introduces a flag called flag_cpp98 that specifies
| that we're using C++98, and uses flag_cpp98 instead of !flag_cpp0x to
| determine if the error must be issued or not.

modulo the spelling of the flag as flag_cxx98 instead of flag_cpp98, the patch
if fine.  Many thanks!

(the flag_cpp0x was agreed to be changed to flag_cxx0x).

-- Gaby


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