This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
two internal compiler errors in the latest egcs
- To: egcs-bugs at cygnus dot com
- Subject: two internal compiler errors in the latest egcs
- From: Felix von Leitner <leitner at math dot fu-berlin dot de>
- Date: Mon, 2 Feb 1998 14:24:25 +0100
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