Internal compiler error 40

Alexander Shumakovitch
Sun Apr 26 14:55:00 GMT 1998

Dear EGCS Developers,

Compilation of the file attached produces the following error:
> 49 >gcc -Wall -o test_bug
> In method `int testclass::public_func(int) const':
> Internal compiler error 40.
> Please submit a full bug report to `'.

System in use: Debian GNU/Linux 2.0, kernel 2.0.33, processor P133, 40MB RAM
               gcc version, g++ version 2.90.27 (from egcs)

I hope, the text of is clear. I've derived it from the program
(not mine) which I was unsuccessfully trying to compile. Unfortunately, I don't
even know whether syntax of line 18 is correct --- I'm not a C++ professional.
In the original version of program it was written like
        { return (pointer_func) (number); }
and I could compile it with standard g++ from gcc. But egcs version of g++
gives the following response in this case:
> In method `int testclass::public_func(int) const':
> must use .* or ->* to call pointer-to-member function in
>   `testclass::pointer_func (...)'
> warning: control reaches end of non-void function
>   `testclass::public_func(int) const'

Is it also a bug or not?

Thank you very much for your work!

Good luck!

  --- Alexander.

More information about the Gcc-bugs mailing list