odd RTTI-related error messages in linker with arrays of procedures with record parameters
Original Reporter info from Mantis: tangentstorm
-
Reporter name: michal wallace
Description:
{$mode objfpc}{$M-}
program what;
type
TItem = record end;
TProc = procedure(const item : TItem);
TDefs = array of TProc;
begin
end.
{
$ fpc what
Free Pascal Compiler version 2.6.2 [2013/07/03] for x86_64
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: FreeBSD for x86-64
Compiling what.pas
Linking what
16 lines compiled, 0.1 sec
Free Pascal Compiler version 2.7.1 [2013/09/01] for x86_64
Copyright (c) 1993-2013 by Florian Klaempfl and others
Target OS: FreeBSD for x86-64
Compiling what.pas
what.pas(6,11) Hint: Local type "TDefs" is not used
Linking what
what.o:(.data.n_RTTI_$P$WHAT_$$_TPROC+0x13): undefined reference to RTTI_$P$WHAT_$$_TITEM'
what.pas(8,1) Error: Error while linking
what.pas(8,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
}
Mantis conversion info:
-
Mantis ID: 25002
-
OS: freebsd
-
Platform: x86-64
-
Version: 2.7.1