This patch fixes 80866, a regression I introduced. The parser stashes template-ids when tentatively parsing, such ids can contain lookups. We need to mark the lookup as 'kept', otherwise the first parse could say 'I'm done with this' and recycle it prematurely. Applied to trunk. nathan -- Nathan Sidwell