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]
Other format: [Raw text]

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



------- 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


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