goto out of a procedure body does not compile
Original Reporter info from Mantis: helbig
-
Reporter name: Wolfgang Helbig
Original Reporter info from Mantis: helbig
- Reporter name: Wolfgang Helbig
Description:
See the typescript:
$ cat goto.p
{$MODE ISO}
{$Q}
{$R}
program gt;
label 1;
procedure jump;
begin
goto 1;
end;
begin
jump;
1:
writeln('jumped!');
end.
$ fpc goto.p
goto.p(13,18) Error: Can't open resource file "/Users/helbig/fpc/.res"
goto.p(13,18) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode
Mantis conversion info:
- Mantis ID: 37817
- OS: mac os x
- OS Build: 10.11
- Platform: imac
- Version: 3.2.0
- Monitored by: » helbig (Wolfgang Helbig)