[fpc-pascal] Generic syntax that compiles with FPC 2.4.4 but not with FPC 2.6.0-0.rc1

Juha Manninen juha.manninen62 at gmail.com
Wed Nov 23 23:01:03 CET 2011


Regarding this issue:
 http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=20713

The following does not compile any more with FPC 2.6.0-0.rc1.
---
  generic TGen<_T> = class
    type public
      T_TArray = array of _T;
    var private
      w: T_TArray;
    public
      constructor Create(Value: _T);
  end;

  TSpecial = specialize TGen<integer>;
---

At line:
      T_TArray = array of _T;
it says:
  unit1.pas(31,16) Fatal: Syntax error, ":" expected but "=" found

It is either a regression bug in FPC 2.6.0 or a bug in FPC 2.4.4 that got
fixed.
Which one is it?

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111124/b31737c6/attachment.html>


More information about the fpc-pascal mailing list