two internal compiler errors in the latest egcs

Felix von Leitner leitner@math.fu-berlin.de
Mon Feb 2 05:25:00 GMT 1998


First listing (member function that looks like globally defined function gives
internal compiler error when called):

---------------------------
#include <stdlib.h>

class bug {
public:
  void realloc(int foo,int bar);
};

main() {
  bug c;
  c.realloc(50,50);
}
---------------------------

second listing (ICE when unifying a function returning bool with a function
returning int):

---------------------------
template <bool bla(void)>
bool bug() {
  return bla();
}

int bla() {
}

main()
{
  bug<bla>();
}
---------------------------

To the uninitiated, these don't look too difficult to fix ;)

Please include me in the reply list as I have recently unsubscribed due to the volume of this list.

Felix



More information about the Gcc-bugs mailing list