issue with each specifically for x86

Steven Schveighoffer schveiguy at yahoo.com
Wed Mar 7 20:17:57 UTC 2018


On 3/7/18 3:09 PM, ag0aep6g wrote:
> On 03/07/2018 08:54 PM, Steven Schveighoffer wrote:
>> Clearly there is some codegen issue here.
> 
> It's beautiful:
> 
> ----
> double f() { return 1; }
> 
> void main()
> {
>      cast(void) f();
>      cast(void) f();
>      cast(void) f();
>      cast(void) f();
>      cast(void) f();
>      cast(void) f();
>      cast(void) f();
> 
>      double b = 2;
>      assert(b == 2); /* fails; should pass */
> }
> ----

Are all those calls required? That's one crazy bug.

-Steve


More information about the Digitalmars-d-learn mailing list