On 02.07.2017 20:23, Florian Klämpfl wrote:
And the compiler writes no warning during compilation?
It does indeed.
On 02.07.2017 20:18, Florian Klämpfl wrote:
Yes, undefined behavior.
I think I got your point :) You are right, sorry for wasting your time.
If we get a convenient way to assign ordinal to enum with range checks,
everything will be fine :)
Ondrej
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel