[Bug c++/90108] ICE: Segmentation fault (in c_tree_chain_next)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 30 12:39:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90108
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Aug 30 12:38:31 2019
New Revision: 275150
URL: https://gcc.gnu.org/viewcvs?rev=275150&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-7-branch/gcc/testsuite/c-c++-common/pr90108.c
Modified:
branches/gcc-7-branch/gcc/c/ChangeLog
branches/gcc-7-branch/gcc/c/c-decl.c
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/decl.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list