[Clang] Requires expression incorrectly use non-static methods from generic lambda inside static method #110785
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
concepts
C++20 concepts
confirmed
Verified by a second party
diverges-from:edg
Does the clang frontend diverge from edg compiler
diverges-from:gcc
Does the clang frontend diverge from gcc on this issue
diverges-from:msvc
Does the clang frontend diverge from msvc on this issue
regression:19
Regression in 19 release
Compiler Explorer: https://godbolt.org/z/66397fTff
Clang versions <= 18 and other compilers accept this program. The requires expression should be false, since
f(0)
is ill-formed in the context inside the lambda.The text was updated successfully, but these errors were encountered: