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]

egcs-2.90.29 [1.0.3] / Linux: Internal compiler error



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


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