This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/59838] [4.7/4.8 Regression] ICE with an enum using an incomplete type


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]