[cfe-commits] r151794 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td lib/Parse/ParseExpr.cpp test/CXX/expr/expr.ass/p9-cxx11.cpp

Richard Smith richard at metafoo.co.uk
Wed Feb 29 23:01:45 PST 2012


On Wed, Feb 29, 2012 at 8:08 PM, Sean Silva <silvas at purdue.edu> wrote:

> I think those error messages are a bit confusing.
>
> The wording seems a little too "absolute". To me at least, "initializer
> list cannot be used on the right hand side of operator '+'" at first
> reading seems to say that it is illegal, in general, to have an initializer
> list on the RHS of a +, where it seems like it would be clearer to say
> "illegal use of an initializer list in the right operand to '+'". Urgh, I'm
> not fully happy about that one either.
>

It is illegal, in general, to have an initializer list on the RHS of a +,
so it seems like the diagnostic has exactly the right implications. Unless
I'm misunderstanding the distinction you're drawing?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120229/9feab542/attachment.html>


More information about the cfe-commits mailing list