Alias template with unevaluated non-generic lambda with constexpr if statements complains about mismatched returns when used in a dependent context #105886
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Maybe related to #58872
https://godbolt.org/z/dGT5Y8s9v
GCC and MSVC (after
__is_same
->std::is_same_v
) are able to compile this.It's fine when
B
isn't dependent. It's also fine ifchoose<B>
is replaced withdecltype([]{ ... }())
.The text was updated successfully, but these errors were encountered: