[cfe-dev] Can't use sizeof ( typeof ( <vla> ))

Paulo Matos via cfe-dev cfe-dev at lists.llvm.org
Wed Dec 7 13:16:45 PST 2016



On 05/12/16 19:30, Friedman, Eli wrote:
> 
> I think you might need to add an overload of
> TransformToPotentiallyEvaluated: you should be transforming TInfo, not
> E.  (Not 100% sure this matters in practice, but I think you could end
> up with infinite recursion.)
> 

Apologies if I misunderstand but you can't easily do that as you can't
do `TransformToPE(*this).TransformExpr(TInfo);`, you need to first
convert a TInfo into an Expr and then call it on
`Sema::TransformToPotentiallyEvaluated` so no overload seems to be
necessary.

-- 
Paulo Matos



More information about the cfe-dev mailing list