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

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


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