egcs `Internal compiler error' on incorrect input

Richard Kettlewell rjk@greenend.org.uk
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.

ttfn/rjk

: sfere; cat t.cc
class base {
public:
    void somefn();
    void method(char *);
};

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

void base::method(char *) {
}

void base::somefn() {
    s[0].ptr("");
}
: 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 t.cc
t.cc: In method `void base::somefn()':
t.cc:17: Internal compiler error.
t.cc:17: Please submit a full bug report to `egcs-bugs@cygnus.com'.
: sfere; 



More information about the Gcc-bugs mailing list