Thread overview
DMD 0.122: creal += ireal f() causes an internal error
May 09, 2005
Burton Radons
May 09, 2005
Walter
May 12, 2005
Thomas Kuehne
May 09, 2005
This code causes an internal error ("..\ztc\cod1.c 2433") during compilation:

    ireal f() { return 1i; }

    void main()
    {
        creal v;

        v += f();
    }

This should compile correctly.  This also causes the internal error:

    ireal f() { return 1i; }

    void main()
    {
        creal v;

        v = v + f();
    }
May 09, 2005
Both now fixed. -Walter


May 12, 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Burton Radons schrieb am Sun, 08 May 2005 19:20:20 -0700:
> This code causes an internal error ("..\ztc\cod1.c 2433") during compilation:
>
>      ireal f() { return 1i; }
>
>      void main()
>      {
>          creal v;
>
>          v += f();
>      }
>
> This should compile correctly.  This also causes the internal error:
>
>      ireal f() { return 1i; }
>
>      void main()
>      {
>          creal v;
>
>          v = v + f();
>      }

Added to DStress as http://dstress.kuehne.cn/run/b/bug_cod1_2433_A.d http://dstress.kuehne.cn/run/b/bug_cod1_2433_B.d http://dstress.kuehne.cn/run/b/bug_cod1_2433_C.d http://dstress.kuehne.cn/run/b/bug_cod1_2433_D.d http://dstress.kuehne.cn/run/b/bug_cod1_2433_E.d http://dstress.kuehne.cn/run/b/bug_cod1_2433_F.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFCgruS3w+/yD4P9tIRAsyGAKCZZfH2awKE1dtgQJigubvWG/3fHgCguGGg
rPPJkD+qtxbM5uqavUOWREI=
=5mSX
-----END PGP SIGNATURE-----