This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix ICE with scoped enums and -g (PR c++/72808)
- From: Jason Merrill <jason at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 28 Nov 2016 09:44:30 -0500
- Subject: Re: [C++ PATCH] Fix ICE with scoped enums and -g (PR c++/72808)
- Authentication-results: sourceware.org; auth=none
- References: <20161125173137.GL3541@tucnak.redhat.com>
On Fri, Nov 25, 2016 at 12:31 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> * decl.c (build_enumerator): Call fixup_type_variants on
> current_class_type after finish_member_declaration.
Let's do this in finish_enum_value_list, in the block controlled by
if (at_class_scope_p ()
&& COMPLETE_TYPE_P (current_class_type)
&& UNSCOPED_ENUM_P (enumtype))
Jason