This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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:
Jason, Marek,
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,
if needed.)

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.

nathan

--
Nathan Sidwell


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]