================
@@ -13976,6 +13976,11 @@ ExprResult
TreeTransform<Derived>::TransformUnaryExprOrTypeTraitExpr(
UnaryExprOrTypeTraitExpr *E) {
if (E->isArgumentType()) {
+ // Transform the type operand in an unevaluated context, as the parser
does.
+ EnterExpressionEvaluationContext Unevaluated(
----------------
Servall4 wrote:
It's decltype(sizeof(X)) in sizeof_in_template. I think it only shows up now
because the new check is the first thing that looks at the parent context for a
sizeof like this; after instantiation that's the function body instead of the
decltype. Moved the declaration above the if.
https://github.com/llvm/llvm-project/pull/229697
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits