View Issue Details

IDProjectCategoryView StatusLast Update
0024097FPCCompilerpublic2015-01-06 14:08
ReporterMaciej Izak Assigned ToSven Barth  
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version2.7.1 
Summary0024097: Generics forward declaration of class and "Identifier not found"
DescriptionFor attached code I have error 'Identifier not found "T"'

type
  TA<T> = class; // forward declaration for TB

  TB<T> = class
    FA: TA<T>;
  end;

  TC<T> = record
  end;

  TA<T> = class
    FB: TB<T>;
    FC: TC<T>; // !ERROR! Identifier not found "T"
               // if you comment formward declaration of TA,
               // and declaration of field FB and type TB then it's working
  end;
Tagsgenerics
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Relationships

related to 0019491 resolvedJonas Maebe A lot of Generics' implementations 
related to 0027206 resolvedSven Barth [Patch] Christmas gift by FreeSparta : Generics.Collections 

Activities

Maciej Izak

2013-03-21 10:49

reporter  

project5.lpr (415 bytes)

Sven Barth

2013-04-05 17:52

manager   ~0066823

Forward declarations are currently not supported. This is a feature, not a bug, so no blocker.

Regards,
Sven

Issue History

Date Modified Username Field Change
2013-03-21 10:49 Maciej Izak New Issue
2013-03-21 10:49 Maciej Izak File Added: project5.lpr
2013-03-21 10:50 Maciej Izak Tag Attached: generics
2013-04-05 17:52 Sven Barth Note Added: 0066823
2013-04-05 17:52 Sven Barth Assigned To => Sven Barth
2013-04-05 17:52 Sven Barth Status new => acknowledged
2013-04-05 17:52 Sven Barth Priority high => normal
2013-04-05 17:52 Sven Barth Severity block => minor
2013-06-05 10:38 Sven Barth Relationship added related to 0019491
2015-01-06 14:08 Sven Barth Relationship added related to 0027206