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]

two internal compiler errors in the latest egcs


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


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