[Bug c/37850] infinite recursive call to __mulsc3 when multiplying not-constant complexs

mikael dot morin at tele2 dot fr gcc-bugzilla@gcc.gnu.org
Sat Oct 18 12:04:00 GMT 2008



------- Comment #6 from mikael dot morin at tele2 dot fr  2008-10-18 12:03 -------
updated testcase :
#include <complex.h>
int main ()
{
        float a = 1.;
        complex float v;
        v = I * 1.;  /* works */
        v = I * a;   /* fails */
        return 0;
}


Two conditions seem necessary for the bug to happen:
 - the testcase is compiled with -O0
 - gcc is configured and bootstrapped with CFLAGS="-O0 -g" (I suspect that -g
is unnecessary, but I don't want to test again)


-- 

mikael dot morin at tele2 dot fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|FAIL:                       |infinite recursive call to
                   |gfortran.dg/c_by_val_1.f &  |__mulsc3 when multiplying
                   |gfortran.dg/value_4.f90     |not-constant complexs
                   |execution test              |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37850



More information about the Gcc-bugs mailing list