<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">thaddy <thaddy@localhost> schrieb am Di., 30. Juli 2019, 10:04:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2019-07-30 01:43, J. Gareth Moreton wrote:<br>
> As someone on the issue pointed out... on page 2, section 3.1:<br>
> <br>
> 3.1 Error<br>
<br>
<br>
I have added this to the bug report. Consider that here all possible <br>
case labels are implemented, the compiler still throws a compile time <br>
error.<br>
That means the implementation is wrong anyway.<br>
<br>
{$mode ISO}<br>
program isobug(infile,outfile);<br>
type<br>
operator = (plus, minus, times);<br>
var<br>
x:integer;<br>
o:operator = plus;<br>
begin<br>
x:=1;<br>
case o of<br>
plus : x := x; // all<br>
minus : x := x; // possible<br>
times : x := x; // cases<br>
end;<br>
end.<br>
<br>
The easy way out seems to revert to the 3.0.4 implementation given the <br>
section mentioned.<br>
Gareth's suggestion would be nice to have, though. </blockquote></div></div><div dir="auto"><br></div><div dir="auto">That's definitely a bug, cause the same code (with "operator" changed to "op") compiles in mode ObjFPC without any warning or error. </div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Sven </div><div dir="auto"></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>