[Bug c++/95127] Self-calling lambda with auto return type gives misleading error message

2021-09-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95127 --- Comment #4 from Andrew Pinski --- Literally all of the same error message even: clang: :2:47: error: function 'operator()<(lambda at :2:12), int>' with deduced return type cannot be used before it is defined auto f = [](const auto , auto

[Bug c++/95127] Self-calling lambda with auto return type gives misleading error message

2021-09-01 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95127 --- Comment #3 from Eric Gallager --- (In reply to Andrew Pinski from comment #2) > All 4 compilers (GCC, ICC, clang and MSVC) I have access to reject this code. Could you post their error messages for comparison?

[Bug c++/95127] Self-calling lambda with auto return type gives misleading error message

2021-08-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95127 --- Comment #2 from Andrew Pinski --- All 4 compilers (GCC, ICC, clang and MSVC) I have access to reject this code.

[Bug c++/95127] Self-calling lambda with auto return type gives misleading error message

2020-05-14 Thread xzlsmc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95127 xzlsmc changed: What|Removed |Added Attachment #48532|0 |1 is obsolete|