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]

SS 1/3 i586-pc-linux-gnu ICE


I got around the ICE by replacing the last 0 with
   (void (inXDBForm::*)(void *))0,

Command line:
   g++ -o /tmp/ice /tmp/ice.cc
/tmp/ice.cc: In function `int main()':
/tmp/ice.cc:27: Internal compiler error.
/tmp/ice.cc:27: Please submit a full bug report to `egcs-bugs@cygnus.com'.
/tmp/ice.cc:27: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.

Input:

      class wxWindow {
      };
      class inXDBForm {
         public:
            void sr(void *);

            inXDBForm();
            virtual ~inXDBForm();
      };
      class ConfigurationForm : public inXDBForm {
         public:
            ConfigurationForm(wxWindow *parent = 0,
                                 inXDBForm *parent_form = 0,
                                 const int x = -1, const int y = -1,
                                 const bool close_reference = false,
                                 void (inXDBForm::*set_reference)(void *) = 0,
                                 wxWindow *item_to_edit = 0,
                                 const bool its_yours = false
                             );
            ~ConfigurationForm();
      };

int
main() {
   wxWindow c;
   new ConfigurationForm(0, 0, 1, 1, false, 0, &c);
}


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