This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21117] New: [4.0/4.1 Regression] ICE after error about returning an incomplete type
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Apr 2005 00:16:55 -0000
- Subject: [Bug middle-end/21117] New: [4.0/4.1 Regression] ICE after error about returning an incomplete type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following C++ code will ICE:
struct wxString;
struct wxString* wxGetEmptyString();
struct wxString GetHeader()
{
return *wxGetEmptyString();
}
Note this does not ICE with the C front-end.
--
Summary: [4.0/4.1 Regression] ICE after error about returning an
incomplete type
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21117