This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Internal compiler error found


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: #


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]