[Clang] [Sema] C++23 consteval if not recognised as immediate function context in templated function #91509
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
consteval
C++20 consteval
Consider https://godbolt.org/z/qTexTzKrb:
The invocation being inside the
if consteval
means it's in an immediate function context ([expr.const]p(16.3)), so it shouldn't be immediate-escalating, andg<void>
should not be an immediate function, yet Clang complains that it is.The text was updated successfully, but these errors were encountered: