]> gcc.gnu.org Git - gcc.git/commit
backport: re PR c++/90108 (ICE: Segmentation fault (in c_tree_chain_next))
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Aug 2019 12:38:31 +0000 (14:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Aug 2019 12:38:31 +0000 (14:38 +0200)
commit79797c978183ab550eb109ea4e70ad4d214aa482
treed8baf8e44a0cdf286a0568770182a4ff0990ee4e
parent08924d873be7290182caf0ae445222e668b56344
backport: re PR c++/90108 (ICE: Segmentation fault (in c_tree_chain_next))

Backported from mainline
2019-04-19  Jakub Jelinek  <jakub@redhat.com>

PR c++/90108
* c-decl.c (merge_decls): If remove is main variant and
DECL_ORIGINAL_TYPE is some other type, remove a DECL_ORIGINAL_TYPE
variant that has newdecl as TYPE_NAME if any.

* decl.c (duplicate_decls): If remove is main variant and
DECL_ORIGINAL_TYPE is some other type, remove a DECL_ORIGINAL_TYPE
variant that has newdecl as TYPE_NAME if any.

* c-c++-common/pr90108.c: New test.

From-SVN: r275150
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr90108.c [new file with mode: 0644]
This page took 0.057578 seconds and 5 git commands to generate.