re PR c++/72808 (ICE on valid c++ code in verify_type (gcc/tree.c:14047))
authorJakub Jelinek <jakub@redhat.com>
Mon, 28 Nov 2016 19:20:02 +0000 (20:20 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 28 Nov 2016 19:20:02 +0000 (20:20 +0100)
commitf28fd43ea80711f0735903a09f67ceb7278a7c58
tree4949282cb8fd2aa13532bfe30e3a89ce8025ccae
parentd057004733e8e4893cab758d51121b6750a9b438
re PR c++/72808 (ICE on valid c++ code in verify_type (gcc/tree.c:14047))

PR c++/72808
* decl.c (finish_enum_value_list): Call fixup_type_variants on
current_class_type after
insert_late_enum_def_into_classtype_sorted_fields.

* g++.dg/debug/pr72808.C: New test.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r242930
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/pr72808.C [new file with mode: 0644]