On Tue, Jan 12, 2016 at 06:36:21PM +0100, Martin Jambor wrote: > > remap_decl (old_var, id); > > } > > - phase 2 - do the full remap_decls, but during that arrange that > > remap_decl for non-zero id->remapping_type_depth if (!n) just returns > > decl > > ...they would not be copied here because remap_decl would not be > duplicating stuff. So I'd end up with an original local decl when I > actually need a duplicate. >
ugh, I'm trying to be too fast and obviously forgot about the id->remapping_type_depth part of the proposed condition. Still, when could relying solely on id->remapping_type_depth fail? Sorry for the noise, Martin