c++/7917: ICE on ilegal code
Reichelt
reichelt@igpm.rwth-aachen.de
Sun Oct 27 07:36:00 GMT 2002
The following reply was made to PR c++/7917; it has been noted by GNATS.
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, V.Haisman@sh.cvut.cz, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/7917: ICE on ilegal code
Date: Sun, 27 Oct 2002 18:26:11 +0200
Hi,
before the ICE g++ emits an error message, so that we'll see a
"confused by earlier errors, bailing out" message instead in the release
version (as in gcc 3.1 for example).
However, gcc 3.0.x and gcc 2.95.x could handle this situation without
such a message. So this is a slight regression.
BTW, here's a slightly cleaned-up testcase:
----------------------snip here-------------------------
struct A
{
int i;
void foo() = 0 {} // illegal!!!
A() : i(0) {}
};
----------------------snip here-------------------------
Greetings,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7917
More information about the Gcc-prs
mailing list