[Bug c++/79657] ICE on invalid c++ code in finish_underlying_type cp/semantics.c:3849
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 22 19:33:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79657
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Feb 22 19:33:13 2017
New Revision: 245658
URL: https://gcc.gnu.org/viewcvs?rev=245658&root=gcc&view=rev
Log:
PR c++/79657
* semantics.c (finish_underlying_type): Bail out for incomplete enums.
* g++.dg/ext/underlying_type12.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/ext/underlying_type12.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list