re PR c++/79657 (ICE on invalid c++ code in finish_underlying_type cp/semantics.c...
authorMarek Polacek <polacek@redhat.com>
Wed, 22 Feb 2017 19:33:13 +0000 (19:33 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 22 Feb 2017 19:33:13 +0000 (19:33 +0000)
commit8fdddd3d837dac9f062236ce97e7c0be59638df1
treee4546c23062b46f30ef92c2f21ece5424f972c95
parent78af14ae0e9fd1b698a1fde2ac43dcc31188e3b1
re PR c++/79657 (ICE on invalid c++ code in finish_underlying_type cp/semantics.c:3849)

PR c++/79657
* semantics.c (finish_underlying_type): Bail out for incomplete enums.

* g++.dg/ext/underlying_type12.C: New test.

From-SVN: r245658
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/underlying_type12.C [new file with mode: 0644]