[Bug objc++/109728] lambda capture with initializer doesn't compile when compiling ObjC++ code.

2023-05-04 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109728

--- Comment #2 from Fabio Alemagna  ---
Yes, clang handles this case correctly.

[Bug objc++/109728] lambda capture with initializer doesn't compile when compiling ObjC++ code.

2023-05-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109728

--- Comment #1 from Andrew Pinski  ---
Oh this might be an ambiguity with ObjC++ parsing part.
[a b] is how you call an object-C method after all.

Is clang able to handle this case too?