View Issue Details

IDProjectCategoryView StatusLast Update
0026016FPCCompilerpublic2021-05-29 10:07
ReporterMartin Friebe Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Platformw32OSwin 
Product Version2.7.1 
Fixed in Version3.3.1 
Summary0026016: Parser ignores wrong syntax (dot in array)
DescriptionThe below program compiles.

Despite the "." in the SetLength
Additional Information
program Project1;
type
   T1 = array of integer;
   T2 = array of T1;
   T3 = array of T2;
var
a: T3;
begin
   SetLength(a.[0].[0],1);
end.
TagsNo tags attached.
Fixed in Revision
FPCOldBugId0
FPCTarget-
Attached Files

Activities

Thaddy de Koning

2014-04-18 13: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 16: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 08:56

reporter   ~0074455

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

Sven Barth

2014-04-22 12:30

manager   ~0074513

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

Regards,
Sven

Thaddy de Koning

2014-04-22 13:18

reporter   ~0074516

Last edited: 2014-04-22 13:23

View 2 revisions

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

Martin Friebe

2021-05-16 16:50

manager   ~0130920

It appears to be fixed in 3.2.2rc.

This issue can be closed.

Florian

2021-05-29 10:07

administrator   ~0131079

Already fixed as reported.

Issue History

Date Modified Username Field Change
2014-04-13 19:33 Martin Friebe New Issue
2014-04-18 13:55 Thaddy de Koning Note Added: 0074451
2014-04-18 16:51 Bart Broersma Note Added: 0074452
2014-04-19 08:56 Thaddy de Koning Note Added: 0074455
2014-04-22 12:30 Sven Barth Note Added: 0074513
2014-04-22 13:18 Thaddy de Koning Note Added: 0074516
2014-04-22 13:23 Thaddy de Koning Note Edited: 0074516 View Revisions
2021-05-16 16:50 Martin Friebe Note Added: 0130920
2021-05-29 10:07 Florian Assigned To => Florian
2021-05-29 10:07 Florian Status new => resolved
2021-05-29 10:07 Florian Resolution open => no change required
2021-05-29 10:07 Florian Fixed in Version => 3.3.1
2021-05-29 10:07 Florian FPCTarget => -
2021-05-29 10:07 Florian Note Added: 0131079