From 375c3b863cfa30db17df0259a423ade00961c974 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 20 Nov 2018 15:09:27 +0100 Subject: [PATCH] re PR lto/87997 (ICE in cp_var_mod_type_p at gcc/cp/cp-objcp-common.c:107 since r265870) PR lto/87997 * tree.c (free_lang_data_in_cgraph): Add argument fld; break out type checking to... (free_lang_data) ... here; update call of free_lang_data_in_cgraph. From-SVN: r266316 --- gcc/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/torture/pr87997.C | 35 +++++++++++++++++++++++++++++++++ gcc/tree.c | 36 +++++++++++++++++++--------------- 3 files changed, 62 insertions(+), 16 deletions(-) create mode 100644 gcc/testsuite/g++.dg/torture/pr87997.C diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44ca2ce..042075e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2018-11-20 Jan Hubicka + PR lto/87997 + * tree.c (free_lang_data_in_cgraph): Add argument fld; break out + type checking to... + (free_lang_data) ... here; update call of free_lang_data_in_cgraph. + +2018-11-20 Jan Hubicka + PR ipa/87706 * ipa-fnsummary.c (pass_ipa_fnsummary): Do not remove functions * ipa.c (possible_inline_candidate_p): Break out from .. diff --git a/gcc/testsuite/g++.dg/torture/pr87997.C b/gcc/testsuite/g++.dg/torture/pr87997.C new file mode 100644 index 0000000..23e22eb --- /dev/null +++ b/gcc/testsuite/g++.dg/torture/pr87997.C @@ -0,0 +1,35 @@ +/* { dg-do compile } */ +template struct a; +template