[clang-cl] Cannot mangle decltype
when used in an unevaluated context
#118241
Labels
decltype
when used in an unevaluated context
#118241
https://godbolt.org/z/cGsG8T4G7
Similar issue as #115990 which is fixed here #117845.
test2
must be instantiated since it has a deduced return type. The instantiation of the lambda is within the context of the uninstantiated Widget template. CodeGen has no way to know that a template argument is defined inside an uninstantiated template. So the function get put intoDeferredDecls
which is keyed off of the mangled name of the function so we need to mangle thedecltype
.The text was updated successfully, but these errors were encountered: