egcs `Internal compiler error' on incorrect input

Richard Kettlewell
Sun Oct 4 17:33:00 GMT 1998

I'm very new to C++, so I don't know if the example below is the right
syntax to achieve the effect I'm trying to get - in fact I'm convinced
after a bit more reading and fiddling that it isn't.

Nonetheless, "Internal compiler error" sounds like bad news, hence
this report.


: sfere; cat
class base {
    void somefn();
    void method(char *);

struct {
    void (base::*ptr)(char *);
} s[] = {

void base::method(char *) {

void base::somefn() {
: sfere; g++ -v
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
: sfere; g++ -c -o t.o In method `void base::somefn()': Internal compiler error. Please submit a full bug report to `'.
: sfere; 

More information about the Gcc-bugs mailing list