[Bug c++/52288] Trouble with operator?: and lambdas
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 17 00:41:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52288
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-02-17 00:36:59 UTC ---
(In reply to comment #3)
> As lambdas get used more you will get this kind of report a lot. I suggest you
> head off a lot of nuisance by having any lambda/lambda type comparisons emit a
> "Note: each lambda is it own unique type".
For the little that it is worth, I agree: both error messages are plain awful.
As programmers start using more complex lambdas, you should expect the
pretty-printing of expressions to reach heavy-template code levels of
awfulness.
Can't we just say?
invalid operands to ternary operator ('lambda' and 'lambda')
More information about the Gcc-bugs
mailing list