if constexpr
appears to not work correctly in some nested templates
#131080
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
duplicate
Resolved as duplicate
lambda
C++11 lambda expressions
I think I've seen similar tickets at some point, so this could be a duplicate.
The following code doesn't compile, but it should: https://gcc.godbolt.org/z/648eY8eh5
It says that
T::foo()
is invalid forT=int
, despite there beingif constexpr
.Tested on Clang 20 and trunk.
The text was updated successfully, but these errors were encountered: