This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37850] infinite recursive call to __mulsc3 when multiplying not-constant complexs
- From: "mikael dot morin at tele2 dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2008 12:03:13 -0000
- Subject: [Bug c/37850] infinite recursive call to __mulsc3 when multiplying not-constant complexs
- References: <bug-37850-14266@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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