This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] [PR2204] Check for parameters of abstract types -Take 3
On Mon, 14 Jun 2004 17:56:19 -0700, Mark Mitchell <mark@codesourcery.com> wrote:
> Anyhow, why not just keep a list of all VAR_DECLs and FUNCTION_DECLs that
> have a parameter of an incomplete type, attached to that incomplete type?
> Then, when a type is completed, if it is abstract, run down the list
> issuing error messages. After the type is complete, clear the list. To
> save space, use a hash table mapping class types to these lists, rather
> than using space in every class type.
Sounds like this checking could be combine with the existing use of
incomplete_vars.
Jason