This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53333] Initializer lists in std=c++03 mode must be an error
- From: "fpelliccioni at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 12 May 2012 23:53:30 +0000
- Subject: [Bug c++/53333] Initializer lists in std=c++03 mode must be an error
- Auto-submitted: auto-generated
- References: <bug-53333-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53333
--- Comment #6 from Fernando Pelliccioni <fpelliccioni at gmail dot com> 2012-05-12 23:53:30 UTC ---
(In reply to comment #5)
> (In reply to comment #4)
> > For other features of C++11 don't need -pedantic-errors to emit an error.
> [...]
> > It doesn't seem consistent.
> > What is the criteria?
>
> Allowing {} is a rather isolated extension that doesn't interfere much with
> anything. Rvalue reference is perhaps the worst example you could pick as it
> changes the behavior all over the place and can easily break code. I don't know
> if there are official criteria, the choices may be questionable, but I don't
> see that it matters that much...
I got it. Thanks!