Re: [PATCH] Fix PR c++/66850 (Adding a forward declaration causes ICE on valid code)

2015-07-14 Thread Jason Merrill
OK. Jason

Re: [PATCH] Fix PR c++/66850 (Adding a forward declaration causes ICE on valid code)

2015-07-12 Thread Patrick Palka
On Sun, Jul 12, 2015 at 7:31 PM, Patrick Palka wrote: > This patch attempts resolve the mentioned PR by fixing two underlying > issues: I should note that there is some overlap between the fixes. Technically fix #2 is sufficient to resolve the PR, whereas fix #1 can only resolve the first test ca

[PATCH] Fix PR c++/66850 (Adding a forward declaration causes ICE on valid code)

2015-07-12 Thread Patrick Palka
This patch attempts resolve the mentioned PR by fixing two underlying issues: 1. When a template is first declared we currently take care to set the DECL_CONTEXT of each of its template template parms to point to it (line 5119 in pt.c:push_template_decl_real). However, we currently don't do this