This is the mail archive of the
mailing list for the GCC project.
Re: [C++] DEFERRED_PARSE
On 7/17/19 8:17 PM, Marek Polacek wrote:
On Mon, Jul 08, 2019 at 08:25:25AM -0400, Nathan Sidwell wrote:
can DEFERRED_PARSE trees survive past the in-class-context late parsing
stage? My assumption was not, but in reducing a module testcase I
encountered a situation when one survived to end of compilation (with no
errors). It was an exception specifier on a declared-but-not-defined
template member function.
Is my assumption incorrect? (I can of course further reduce the testcase,
I think that should be fine. I guess we can treat it similarly to
DEFERRED_NOEXCEPT. At least I haven't seen that it broke anything.
Thanks. I did some more poking, and we do parse them when the class is complete,
it's just that in the non-defining template case we leave some detritus behind
that I was picking up. I'm playing with a patch to fix that.