[Bug 59] implicit conversion from integer to cfloat not caught by the compiler

Thomas Kuehne thomas-dloop at kuehne.cn
Fri May 19 09:44:50 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-05-18:
> ------- Comment #1 from smjg at iname.com  2006-05-18 08:54 -------
> Make up your mind - are we talking about integers or floating points here?

Thanks for catching this.

In contrast to the documentation the compiler allows implicity promoting
integers to complex floats.

creal c = 1; // should fail to compile

Thomas


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

iD8DBQFEbbmB3w+/yD4P9tIRAp86AJ9XbD108t6opHbrTJjOv88wE4N32ACdHl3S
xU7VhImJz6VmHfKI7biZS20=
=A6n7
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list