egcs-2.90.29 [1.0.3] / Linux: Internal compiler error
lelaquaf@ilog.fr
lelaquaf@ilog.fr
Thu Jul 2 09:20:00 GMT 1998
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
More information about the Gcc-bugs
mailing list