This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59838] [4.7/4.8 Regression] ICE with an enum using an incomplete type
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Jan 2014 10:43:01 +0000
- Subject: [Bug c++/59838] [4.7/4.8 Regression] ICE with an enum using an incomplete type
- Auto-submitted: auto-generated
- References: <bug-59838-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59838
--- Comment #10 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Jan 20 10:42:29 2014
New Revision: 206795
URL: http://gcc.gnu.org/viewcvs?rev=206795&root=gcc&view=rev
Log:
PR c++/59838
cp/
* cvt.c (ocp_convert): Don't segfault on non-existing
ENUM_UNDERLYING_TYPE.
testsuite/
* g++.dg/diagnostic/pr59838.C: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/diagnostic/pr59838.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/cvt.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog