> 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