Internal compiler error found
ujmd@rz.uni-karlsruhe.de
ujmd@rz.uni-karlsruhe.de
Fri Nov 27 02:29:00 GMT 1998
Hey Folks,
I hope, this is not the 1001th bugreport of the same error...
I just made a stupid error writing a c++ program that causes an internal
compiler error. I think its not very important, but perhaps its easy to fix.
Here's the description:
If you illegaly write a destructor with arguments (ups!) and compile the
program with egcs-2.91.57 then it reports an internal compiler error.
Happy hacking...
Berni (email berni@hadiko.de)
Here's what I did:
root@skuld: # cat gcc_test.cc
#include <stdio.h>
class something {
private:
public:
something(void);
~something();
};
something::something(void) {
};
// Illegal destructor causes Internal compiler error
something::~something(int foo) {
};
something::~something() {
};
int main(void) {
printf("Working...\n");
return 1;
}
root@skuld: # gcc gcc_test.cc -o test
gcc_test.cc: In method omething::~something()':
gcc_test.cc:17: Internal compiler error.
gcc_test.cc:17: Please submit a full bug report to gcs-bugs@cygnus.com'.
root@skuld: # gcc --version
egcs-2.91.57
root@skuld: #
More information about the Gcc-bugs
mailing list