C++ fix bootstrap problem incomplete_type_error undefined.
Geoff Keating
geoffk@geoffk.org
Tue Jul 2 23:31:00 GMT 2002
Graham Stott <graham.stott@btinternet.com> writes:
> All,
>
> A bootstrap of todays mainline checkout failed because incomplete_type_error
> used in cp/pt.c is undefined.
>
> The following patch brings C++ back to bootstrap land.
This is OK.
> cp/ChangeLog
>
> *pt.c(instantiate_class_template): Fix typo.
>
> -------------------------------------------------------------------
> Index: pt.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/cp/pt.c,v
> retrieving revision 1.596
> diff -c -p -r1.596 pt.c
> *** pt.c 2 Jul 2002 15:55:54 -0000 1.596
> --- pt.c 2 Jul 2002 21:30:28 -0000
> *************** instantiate_class_template (type)
> *** 5251,5257 ****
> tree rtype = TREE_TYPE (r);
> if (!can_complete_type_without_circularity (rtype))
> {
> ! incomplete_type_error (r, rtype);
> r = error_mark_node;
> }
> }
> --- 5251,5257 ----
> tree rtype = TREE_TYPE (r);
> if (!can_complete_type_without_circularity (rtype))
> {
> ! cxx_incomplete_type_error (r, rtype);
> r = error_mark_node;
> }
> }
> --------------------------------------------------------------------
>
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
More information about the Gcc-patches
mailing list