This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-2.90.29 [1.0.3] / Linux: Internal compiler error
- To: egcs-bugs at cygnus dot com
- Subject: egcs-2.90.29 [1.0.3] / Linux: Internal compiler error
- From: lelaquaf at ilog dot fr
- Date: Thu, 2 Jul 1998 20:21:38 +0200
Here is what happens to me...
uname -sr
=> Linux 2.0.34
g++ -v
=> Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
Code:
--------------------------------------------------
class Bug
{
public:
Bug() {}
void realloc(int, void**);
void realloc(int);
};
void
Bug::realloc(int, void**)
{
// empty
}
void
Bug::realloc(int i)
{
realloc(i, new void*[i]);
}
--------------------------------------------------
The compilation of this fails :-(
Note that if it works if I try any of
- I rename the 'realloc' function to any other name
- I make the first ::realloc (the one that expects two
parameters) inline
Any info?
Fab