January 29, 2004 [dmd-Crash and Bug] No type checking in structs? | ||||
---|---|---|---|---|
| ||||
void main(){ struct data{ bit b1=-1; bit b2=2; } } dmd 0.79, win98SE. This code crashes dmd in the code generation phase. The type `bit' can be replaced by any type with same result. If the assigned value is nonnegative, then no crash results. But no bug is generated for `b2=2': should be out of range or cannot convert ìnt' to `bit'. So long. |
January 30, 2004 Re: [dmd-Crash and Bug] No type checking in structs? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred Nowak | Manfred Nowak wrote:
> void main(){
> struct data{
> bit b1=-1;
> bit b2=2;
> }
> }
>
> dmd 0.79, win98SE.
[...]
Same thing with `union'.
So long.
|
Copyright © 1999-2021 by the D Language Foundation