diff options
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index c00b996..617b96e 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -15089,22 +15089,9 @@ xref_tag_1 (enum tag_types tag_code, tree name, return error_mark_node; } - if (how != TAG_how::HIDDEN_FRIEND && TYPE_HIDDEN_P (t)) - { - /* This is no longer an invisible friend. Make it - visible. */ - tree decl = TYPE_NAME (t); - - DECL_ANTICIPATED (decl) = false; - DECL_FRIEND_P (decl) = false; - - if (TYPE_TEMPLATE_INFO (t)) - { - tree tmpl = TYPE_TI_TEMPLATE (t); - DECL_ANTICIPATED (tmpl) = false; - DECL_FRIEND_P (tmpl) = false; - } - } + gcc_checking_assert (how == TAG_how::HIDDEN_FRIEND + || !(DECL_LANG_SPECIFIC (TYPE_NAME (t)) + && DECL_ANTICIPATED (TYPE_NAME (t)))); } return t; |