[PATCH RFA] tree-inline: Fix VLA handling [PR95552]

Eric Botcazou botcazou@adacore.com
Mon Jun 8 09:46:03 GMT 2020


> The only case handled specially is TYPE_DECL; other DECL_EXPRs fall
> through to the default case, where we WALK_SUBTREE over all the operands
> of the expression, which for DECL_EXPR is the decl.

It seems hard to believe that the inliner relies on this to copy DECLs though, 
see the calls to remap_decl[s].  And note that remap_decl has had a special 
handling for DECL_ORIGINAL_TYPE of TYPE_DECLs since 2003.  Are you sure the 
problem is not that the TYPE_DECL is not attached to the enclosing BIND_EXPR?

-- 
Eric Botcazou


More information about the Gcc-patches mailing list