[PATCH] Fix PR c++/30759: Initializer-list accepted for object of non-POD type
Gabriel Dos Reis
gdr@cs.tamu.edu
Thu May 31 20:52:00 GMT 2007
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
More information about the Gcc-patches
mailing list