Internal compiler error 40

Alexander Shumakovitch shurik@mpim-bonn.mpg.de
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 test_bug.cc
> test_bug.cc: In method `int testclass::public_func(int) const':
> test_bug.cc:18: Internal compiler error 40.
> test_bug.cc:18: Please submit a full bug report to `egcs-bugs@cygnus.com'.

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

I hope, the text of test_bug.cc 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:
> test_bug.cc: In method `int testclass::public_func(int) const':
> test_bug.cc:18: must use .* or ->* to call pointer-to-member function in
>   `testclass::pointer_func (...)'
> test_bug.cc:18: 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