ecgs-bug

Florian La Roche florian@suse.de
Tue Sep 29 04:56:00 GMT 1998


egcs 1.1 doesn't compile the following code with -O2, but compiles fine
with -O1:

knorke:~/source $ gcc -O1 -c -o test.o test.cc
knorke:~/source $ gcc -O2 -c -o test.o test.cc
reg-stack.c:2885: Internal compiler error in function change_stack
knorke:~/source $ mutt

---------------------------------------------------------------------
class QArray
{
public:
        QArray ();
        ~QArray();
        int size();
};

double  afxfn (double x, QArray points , int sym)
{
	if (sym)
              return x * 2.0 - 1.0;

        return x ;
}
---------------------------------------------------------------------

Thanks a lot,

Florian La Roche




More information about the Gcc-bugs mailing list