Invalid Floating Point Operation (DMD 2067)

rumbu via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 16 13:32:23 PDT 2015


On Thursday, 16 April 2015 at 20:27:46 UTC, rumbu wrote:
Hit send by accident :)


Reduced case:

struct S {
     float f; //or double or real
     this(float f) {
        this.f = f;
     }
}

S foo() {
    return S(0f);
}

void main() {
   auto s = foo();
}

Win 8.1 also, 32 and 64 bit, debug or release, same exception


More information about the Digitalmars-d-learn mailing list