another xrealloc bug in gcc/cp/method.c

grahams@rcp.co.uk grahams@rcp.co.uk
Sat Apr 4 06:42:00 GMT 1998


All

In the 980328 egcs snapshot (I haven't checked any earlier snapshots)
the call to xrealloc @ line 1164 gcc/cp/method.c has only one parameter
which is obviously wrong.

    btypelist = (tree *)xrealloc(sizeof(tree) * maxbsize);

It should be

    btypelist = (tree *)xrealloc(btypelist, sizeof(tree) * maxbsize);

Graham




More information about the Gcc-bugs mailing list