[cfe-commits] r152721 - in /cfe/trunk: lib/Parse/ParseCXXInlineMethods.cpp lib/Parse/ParseDecl.cpp test/SemaCXX/cxx0x-initializer-scalars.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Fri Mar 16 02:03:45 PDT 2012


On 16.03.2012, at 02:42, Richard Smith wrote:

> On Thu, Mar 15, 2012 at 6:04 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Wed, Mar 14, 2012 at 8:54 AM, Sebastian Redl
> <sebastian.redl at getdesigned.at> wrote:
> > Author: cornedbee
> > Date: Wed Mar 14 10:54:00 2012
> > New Revision: 152721
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=152721&view=rev
> > Log:
> > Parse brace initializers as default arguments. PR12236.
> >With this change, we accept "int f(int a = {1});" in C++98 mode
> without a warning.  That seems wrong.
> 
> We should also produce a -Wc++98-compat warning for this in C++11 mode.

Maybe I shouldn't write code when sick ...

Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120316/5e541c28/attachment.html>


More information about the cfe-commits mailing list