View Issue Details

IDProjectCategoryView StatusLast Update
0026016FPCCompilerpublic2014-04-22 15:23
ReporterMartin Friebe Assigned To 
Status newResolutionopen 
Product Version2.7.1 
Summary0026016: Parser ignores wrong syntax (dot in array)
DescriptionThe below program compiles.

Despite the "." in the SetLength
Additional Information
program Project1;
   T1 = array of integer;
   T2 = array of T1;
   T3 = array of T2;
a: T3;
TagsNo tags attached.
Fixed in Revision
Attached Files


Thaddy de Koning

2014-04-18 15:55

reporter   ~0074451

Wasn't this a case about really wierd syntax that was actually allowed since the olden days? I must have a reference to that somewhere. Will edit later.

Bart Broersma

2014-04-18 18:51

reporter   ~0074452

FWIW: D7 throws this error at me: [Error] main.pas(271): Record, object or class type required. So much for the "olden days".

Thaddy de Koning

2014-04-19 10:56

reporter   ~0074455

Yes. There is indeed a strange leftover to do with dots but not related to this.

Sven Barth

2014-04-22 14:30

manager   ~0074513

@Thaddy: maybe you mean a(.0.)(.0.) which works... ("(." replaces "[" and ".)" replaces "]")


Thaddy de Koning

2014-04-22 15:18

reporter   ~0074516

Last edited: 2014-04-22 15:23

View 2 revisions

Yup. So it was related... hm, debug memory. Tnx Sven.

Issue History

Date Modified Username Field Change
2014-04-13 21:33 Martin Friebe New Issue
2014-04-18 15:55 Thaddy de Koning Note Added: 0074451
2014-04-18 18:51 Bart Broersma Note Added: 0074452
2014-04-19 10:56 Thaddy de Koning Note Added: 0074455
2014-04-22 14:30 Sven Barth Note Added: 0074513
2014-04-22 15:18 Thaddy de Koning Note Added: 0074516
2014-04-22 15:23 Thaddy de Koning Note Edited: 0074516 View Revisions