View Issue Details

IDProjectCategoryView StatusLast Update
0037323FPCCompilerpublic2020-07-11 09:12
ReporterScott Franco Assigned ToFlorian  
Status resolvedResolutionfixed 
Product Version3.2.0 
Fixed in Version3.3.1 
Summary0037323: Does not recognize ISO 7185 standard label
DescriptionDoes not see the goto labels 0001 and 1 as the same. The ISO 7185 standard says:

6.1.6 Labels
Labels shall be digit-sequences and shall be distinguished by their apparent integral values and shall be in the closed interval 0 to 9999. The spelling of a label shall be its apparent integral value.

label = digit-sequence .

Steps To ReproduceC:\projects\PASCAL\pascal-p5>fpc -Miso test.pas
Free Pascal Compiler version 3.2.0 [2020/06/04] for i386
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling test.pas
test.pas(6,11) Error: Identifier not found "1"
test.pas(6,12) Error: identifier isn't a label
test.pas(8,1) Error: Label used but not defined "1"
test.pas(9) Fatal: There were 3 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\FPC\3.2.0\bin\i386-Win32\ppc386.exe returned an error exitcode

C:\projects\PASCAL\pascal-p5>cat test.pas
program test;

label 0001;

     goto 1;
TagsNo tags attached.
Fixed in Revision45764
Attached Files


related to 0037320 resolvedFlorian Fails on ISO 7185 dispose 


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-07-10 02:09 Scott Franco New Issue
2020-07-10 22:41 Florian Relationship added related to 0037320
2020-07-11 09:12 Florian Assigned To => Florian
2020-07-11 09:12 Florian Status new => resolved
2020-07-11 09:12 Florian Resolution open => fixed
2020-07-11 09:12 Florian Fixed in Version => 3.3.1
2020-07-11 09:12 Florian Fixed in Revision => 45764
2020-07-11 09:12 Florian FPCTarget => -