Re: C++ PATCH to fix a couple of ice-on-invalid with incomplete type (PR c++/79420, c++/79463)

2017-02-14 Thread Jason Merrill
OK. On Tue, Feb 14, 2017 at 11:40 AM, Marek Polacek wrote: > In both these PRs the problem is the same: we have a non-dependent incomplete > postfix expression in a template, and since r245223 we treat it as dependent > (with a pedwarn), and erase its type. For OVERLOADs

C++ PATCH to fix a couple of ice-on-invalid with incomplete type (PR c++/79420, c++/79463)

2017-02-14 Thread Marek Polacek
In both these PRs the problem is the same: we have a non-dependent incomplete postfix expression in a template, and since r245223 we treat it as dependent (with a pedwarn), and erase its type. For OVERLOADs this is bad because we'll hit this in tsubst_copy: case OVERLOAD: /* An