This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error found
- To: egcs-bugs at cygnus dot com
- Subject: Internal compiler error found
- From: ujmd at rz dot uni-karlsruhe dot de
- Date: Fri, 27 Nov 1998 09:15:32 +0100 (CET)
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: #