Simen Kjaeraas:

Tried this with 2.063.2, and there are three errors in the code - deserializeInto should return its buffer, the switch on line 19 needs a default: case, and deserializeInto tries to modify its non-buffer argument (which in this case is a
const string. None of these seem to be a compiler bug.

I have introduced the first two errors in the reduction process. The third is the one that triggers a crash of my DMD version. I am keeping my compiler updated, I have compiled it yesterday, and it crashes after giving the error:

test.d(28): Error: cannot modify const expression s

Now I don't know if it's a problem of just my compiler, or if it's a normal compiler bug.

Bye,
bearophile

Reply via email to