This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52288] Trouble with operator?: and lambdas


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')


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]