lambda's operator() is non-constexpr function #97958
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
lambda
C++11 lambda expressions
This program
is accepted in GCC, MSVC and Clang 17, but Clang 18 complains:
Online demo: https://gcc.godbolt.org/z/nW74e4q9v
It is a modified example from https://stackoverflow.com/q/77431308/7325599
The text was updated successfully, but these errors were encountered: