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: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Feb 2012 23:53:15 +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
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-16 23:53:15 UTC ---
(In reply to comment #1)
> > foo.cc:5:28: error: no match for ternary Ãoperator?:Ã in Ãb ? {argc} : {argc}Ã
> >
> > which is a poor.
>
> What do you suggest instead?
Sorry, I missed the {argc} part. Trunk gives a better error:
l.cc:4:34: error: no match for ternary 'operator?:' in 'b ? main(int,
char**)::<lambda(int)>{argc} : main(int, char**)::<lambda(int)>{argc}'