This is the mail archive of the
mailing list for the GCC project.
Re: [C++ PATCH] Fix lookup in typedefs of the currently open class (PR c++/33516)
Jakub Jelinek wrote:
if (COMPLETE_TYPE_P (t))
shortcut in currently_open_class breaks bootstrap.
That's backwards, should return false for complete types.
If I instead stick
gcc_assert (!COMPLETE_TYPE_P (t)) where currently_open_class is about to
return true, I get:
#0 fancy_abort (file=0xc55154 "../../gcc/cp/class.c", line=5617, function=0xc56750 "currently_open_class")
so something clearly relies on currently_open_class returning true
even for already completed classes.
That's odd. Ah well, I guess put the COMPLETE_TYPE_P check back where
you had it then. Pre-approved.