View Issue Details

IDProjectCategoryView StatusLast Update
0037817FPCCompilerpublic2020-09-26 16:21
ReporterWolfgang Helbig Assigned ToFlorian  
Status resolvedResolutionno change required 
PlatformimacOSmac os x 
Product Version3.2.0 
Summary0037817: goto out of a procedure body does not compile
DescriptionSee the typescript:
$ cat goto.p
program gt;
  label 1;
  procedure jump;
    goto 1;
$ 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
TagsNo tags attached.
Fixed in Revision
Attached Files


Anton Kavalenka

2020-09-26 13:24

reporter   ~0125871

Last edited: 2020-09-26 13:26

View 2 revisions

{$R resource_name.rc resource_name.res} build and link resource
{R+} range check ON

Please read the compiler output.

Or {$R} in ISO mode equivalent to {$R+} in FPC/Delphi mode?

Wolfgang Helbig

2020-09-26 13:57

reporter   ~0125873

Sorry, Anton. I've forgotten the "+" to turn range check on!
It works fine now! This issue can be closed!

Issue History

Date Modified Username Field Change
2020-09-26 13:14 Wolfgang Helbig New Issue
2020-09-26 13:24 Anton Kavalenka Note Added: 0125871
2020-09-26 13:26 Anton Kavalenka Note Edited: 0125871 View Revisions
2020-09-26 13:57 Wolfgang Helbig Note Added: 0125873
2020-09-26 16:21 Florian Assigned To => Florian
2020-09-26 16:21 Florian Status new => resolved
2020-09-26 16:21 Florian Resolution open => no change required
2020-09-26 16:21 Florian FPCTarget => -