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 44ca2cefb3e..042075e628b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +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 diff --git a/gcc/testsuite/g++.dg/torture/pr87997.C b/gcc/testsuite/g++.dg/torture/pr87997.C new file mode 100644 index 00000000000..23e22eb20a3 --- /dev/null +++ b/gcc/testsuite/g++.dg/torture/pr87997.C @@ -0,0 +1,35 @@ +/* { dg-do compile } */ +template struct a; +template