View Issue Details

IDProjectCategoryView StatusLast Update
0036496FPCCompilerpublic2019-12-31 23:07
ReporterHighballAssigned ToSven Barth 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionProduct Build 
Target VersionFixed in Version3.3.1 
Summary0036496: compile error when attempting recursion in generic function
DescriptionI'm unable to recurse inside of a generic function either with the same generic type, or different type (see attached project)
procedures seem to compile fine.

original forum post,
https://forum.lazarus.freepascal.org/index.php/topic,47936.0.html
Steps To Reproduce* open tester.lpr
* uncomment one of these two method calls from "function TestGenRecurse<T>"
  //TestGenRecurse<T>(AInput);
  //TestGenRecurse<String>('test');
* attempt to compile
Additional Information* When testing I used latest trunk as of today
* using mode delphi
Tagsgenerics
Fixed in Revision43823
FPCOldBugId
FPCTarget-
Attached Files

Activities

Highball

2019-12-30 18:00

reporter  

fpc_recurse_bug.zip (1,682 bytes)

Sven Barth

2019-12-30 22:36

manager   ~0120162

Please test and close if okay.

Highball

2019-12-31 23:07

reporter   ~0120174

Confirmed working after pulling latest trunk, closing

Issue History

Date Modified Username Field Change
2019-12-30 18:00 Highball New Issue
2019-12-30 18:00 Highball File Added: fpc_recurse_bug.zip
2019-12-30 18:01 Highball Tag Attached: generics
2019-12-30 22:36 Sven Barth Assigned To => Sven Barth
2019-12-30 22:36 Sven Barth Status new => resolved
2019-12-30 22:36 Sven Barth Resolution open => fixed
2019-12-30 22:36 Sven Barth Fixed in Version => 3.3.1
2019-12-30 22:36 Sven Barth Fixed in Revision => 43823
2019-12-30 22:36 Sven Barth FPCTarget => -
2019-12-30 22:36 Sven Barth Note Added: 0120162
2019-12-31 23:07 Highball Status resolved => closed
2019-12-31 23:07 Highball Note Added: 0120174