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++ patch] Move FINAL flag to middle-end trees.


> Hi,
> this is patch I am testing.  Does it look OK?
> Index: cp/pt.c
> ===================================================================
> --- cp/pt.c	(revision 201910)
> +++ cp/pt.c	(working copy)
> @@ -8730,7 +8730,8 @@ instantiate_class_template_1 (tree type)
>        /* Adjust visibility for template arguments.  */
>        determine_visibility (TYPE_MAIN_DECL (type));
>      }
> -  CLASSTYPE_FINAL (type) = CLASSTYPE_FINAL (pattern);
> +  if (CLASS_TYPE_P (type))
> +    CLASSTYPE_FINAL (type) = CLASSTYPE_FINAL (pattern);

Sadly we ICE here because BINFO of type is not built yet.
I tried to move the code after xref_binfos and it does seem to lead to errors
while building libstdc++ PCH.  Any idea what to do here?

Honza


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