This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52288] Trouble with operator?: and lambdas
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 17 Feb 2012 00:36:59 +0000
- Subject: [Bug c++/52288] Trouble with operator?: and lambdas
- Auto-submitted: auto-generated
- References: <bug-52288-4@http.gcc.gnu.org/bugzilla/>
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')