www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Two internal errors with the % operator and ireals (DMD 0.135 win32)

reply Don Clugston <dac nospam.com.au> writes:
Both are one or two-liners, and are clearly related.

Case (1)
---------
  real a = 6.1i % 3i;
---------
Assertion failure: '0' on line 345 in file 'constfold.c'

Case (2)
---------
   real b = 7.2;
   real c = b % 3i;
---------
Internal error: ..\ztc\cg87.c 1246
Oct 07 2005
parent Don Clugston <dac nospam.com.au> writes:
Don Clugston wrote:
 Both are one or two-liners, and are clearly related.
 
 Case (1)
 ---------
  real a = 6.1i % 3i;
 ---------
 Assertion failure: '0' on line 345 in file 'constfold.c'
 
 Case (2)
 ---------
   real b = 7.2;
   real c = b % 3i;
 ---------
 Internal error: ..\ztc\cg87.c 1246
Another one: --------- creal d = 1; d %= 2i; --------- Internal error: ..\ztc\cg87.c 2099
Oct 07 2005