> 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