View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0037322 | FPC | Compiler | public | 2020-07-10 02:03 | 2020-08-11 14:06 |
Reporter | Scott Franco | Assigned To | Florian | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
OS | Windows | ||||
Product Version | 3.2.0 | ||||
Fixed in Version | 3.3.1 | ||||
Summary | 0037322: ISO 7185 mode rejects program name as duplicate | ||||
Description | The program name in the header is rejected as a duplicate on use for other ids. The ISO 7185 standard sez: program = program-heading ' ;' program-block '.' . program-heading = 'program' identifier [ '(' program-parameter-list ')'] . program-parameter-list = identifier-list . program-block = block . The identifier of the program-heading shall be the program name. It shall have no significance within the program. From the ISO 7185 standard at: http://www.pascal-central.com/iso7185.html#6.10%20Programs | ||||
Steps To Reproduce | C:\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(3,9) Error: Duplicate identifier "test" test.pas(7) Fatal: There were 1 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; var test: integer; begin end. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 45757 | ||||
FPCOldBugId | |||||
FPCTarget | - | ||||
Attached Files |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2020-07-10 02:03 | Scott Franco | New Issue | |
2020-07-10 22:41 | Florian | Relationship added | related to 0037320 |
2020-07-10 23:06 | Florian | Assigned To | => Florian |
2020-07-10 23:06 | Florian | Status | new => resolved |
2020-07-10 23:06 | Florian | Resolution | open => fixed |
2020-07-10 23:06 | Florian | Fixed in Version | => 3.3.1 |
2020-07-10 23:06 | Florian | Fixed in Revision | => 45757 |
2020-07-10 23:06 | Florian | FPCTarget | => - |