View Issue Details

IDProjectCategoryView StatusLast Update
0025620FPCCompilerpublic2015-01-06 14:02
ReporterMaciej Izak Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.7.1 
Summary0025620: Fatal: Compilation aborted, for second compilation with generic class
DescriptionHow to generate error check out "Steps To Reproduce"

---program---
program r22;

{$MODE DELPHI}

uses r22u01;

var
  // 1. Compile project (press F9).
  // 2. Change Int8 to Int16 or any other type in X declaration
  // 3. press F9 - Fatal: Compilation aborted!!!
  X: TB<Int8>;
begin

end.

---unit r22u01.pas---
unit r22u01;

{$mode delphi}

interface

type
  TA = class(TObject);

  TB<T> = class
  public
    function Foo: r22u01.TA; virtual; abstract;
  end;

implementation

end.
Steps To Reproduce1. Compile project (press F9).
2. Change Int8 to Int16 or any other type in X declaration (r22.lpr)
3. press F9 - Fatal: Compilation aborted!!!
Tagsgenerics
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Relationships

related to 0027206 resolvedSven Barth [Patch] Christmas gift by FreeSparta : Generics.Collections 

Activities

Maciej Izak

2014-01-25 20:30

reporter  

r22.zip (609 bytes)

Issue History

Date Modified Username Field Change
2014-01-25 20:30 Maciej Izak New Issue
2014-01-25 20:30 Maciej Izak File Added: r22.zip
2014-01-25 20:30 Maciej Izak Tag Attached: generics
2015-01-06 14:02 Sven Barth Relationship added related to 0027206