On Wed, Feb 29, 2012 at 8:08 PM, Sean Silva <[email protected]> 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?
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to