2018-05-11 12:36, Santiago A. via Lazarus rašė:
Yes, but I think that it should be considered a FPC bug

   TList = array of TElement;
   Plist = ^TList;

   TSetting = record
       list: Plist;
   end;

const
   _List: array [0..1] of TElement = (
       (strr: 'a'),
       (strr: 'b'));

   _Settings: array [0..0] of TSetting = (
       (list: @_List)); //  <=== This line should rise a compiler error.
You are asigning a pointer to an static array to a pointer to a dynamic
array.

Reported: https://bugs.freepascal.org/view.php?id=33757

--
  Valdas Jankūnas
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to