View Issue Details

IDProjectCategoryView StatusLast Update
0032048FPCFCLpublic2017-07-09 16:17
ReporterMaciej IzakAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.1.1Product Build 
Target Version3.2.0Fixed in Version3.1.1 
Summary0032048: fcl-passrc fails for "class var" in records
Descriptionfcl-passrc can't parse this kind of code:

{$MODE DELPHI}

  TMyRecord = record
  class var
    A: Int64;
  end;
TagsNo tags attached.
Fixed in Revision32048
FPCOldBugId0
FPCTarget
Attached Files

Activities

Michael Van Canneyt

2017-06-21 15:04

administrator   ~0101244

home:~> fpc tr2.pp -S2
tr2.pp(5,3) Fatal: Syntax error, "identifier" expected but "CLASS" found
Fatal: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode

What mode(switch) allows class var in records ?

Maciej Izak

2017-06-21 15:13

reporter   ~0101245

Delphi mode ofc. :)

Michael Van Canneyt

2017-06-21 15:40

administrator   ~0101248

Not
{$modeswitch advancedrecords}

(it is different) ?

Maciej Izak

2017-06-21 15:53

reporter   ~0101251

Last edited: 2017-06-21 15:54

View 2 revisions

class var works with advancedrecords too

Thaddy de Koning

2017-06-21 19:37

reporter   ~0101255

In Delphi class var worked with advanced records *before* it could be used with actual classes (.net excluded). A matter of confusion all along.

Michael Van Canneyt

2017-06-21 19:56

administrator   ~0101256

:)

so "Delphi mode ofc. :) " was a bit premature...

Michael Van Canneyt

2017-07-09 16:17

administrator   ~0101638

Fixed. Thanks for reporting!

Issue History

Date Modified Username Field Change
2017-06-21 14:36 Maciej Izak New Issue
2017-06-21 15:04 Michael Van Canneyt Assigned To => Michael Van Canneyt
2017-06-21 15:04 Michael Van Canneyt Status new => assigned
2017-06-21 15:04 Michael Van Canneyt Note Added: 0101244
2017-06-21 15:04 Michael Van Canneyt Status assigned => feedback
2017-06-21 15:13 Maciej Izak Note Added: 0101245
2017-06-21 15:13 Maciej Izak Status feedback => assigned
2017-06-21 15:16 Maciej Izak Description Updated View Revisions
2017-06-21 15:40 Michael Van Canneyt Note Added: 0101248
2017-06-21 15:53 Maciej Izak Note Added: 0101251
2017-06-21 15:54 Maciej Izak Note Edited: 0101251 View Revisions
2017-06-21 19:37 Thaddy de Koning Note Added: 0101255
2017-06-21 19:56 Michael Van Canneyt Note Added: 0101256
2017-07-09 16:17 Michael Van Canneyt Fixed in Revision => 32048
2017-07-09 16:17 Michael Van Canneyt Note Added: 0101638
2017-07-09 16:17 Michael Van Canneyt Status assigned => resolved
2017-07-09 16:17 Michael Van Canneyt Fixed in Version => 3.1.1
2017-07-09 16:17 Michael Van Canneyt Resolution open => fixed
2017-07-09 16:17 Michael Van Canneyt Target Version => 3.2.0