Re: [PR c++/85634] Fix tsubst ICE

2018-06-20 Thread Nathan Sidwell
On 06/20/2018 10:33 AM, Nathan Sidwell wrote: This patch fixes 85634, an ice during tsubst where we encounter an unmarked lookup.  Such lookups could be mutated by declarations added after the template definition containing them.   That would be bad. This patch is needed on trunk, to handle fr

Re: [PR c++/85634] Fix tsubst ICE

2018-06-20 Thread Nathan Sidwell
And here's the patch for gcc-8. nathan -- Nathan Sidwell 2018-06-20 Nathan Sidwell PR c++/85634 - tsubst ICE on unmarked lookup * parser.c (cp_parser_primary_expression): Keep lookup in template. PR c++/85634 - tsubst ICE on unmarked lookup * g++.dg/lookup/pr85634.C: New. Index: gcc/cp/

[PR c++/85634] Fix tsubst ICE

2018-06-20 Thread Nathan Sidwell
This patch fixes 85634, an ice during tsubst where we encounter an unmarked lookup. Such lookups could be mutated by declarations added after the template definition containing them. That would be bad. I had originally wanted to mark these lookups once we knew we were saving them, but this