c++/7917: ICE on ilegal code

Reichelt reichelt@igpm.rwth-aachen.de
Sun Oct 27 07:38:00 GMT 2002


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-bugs mailing list