wrong return of a function when function type is a record
Original Reporter info from Mantis: jcornuet
-
Reporter name: Jean-Marie Cornuet
Original Reporter info from Mantis: jcornuet
- Reporter name: Jean-Marie Cornuet
Description:
Define a type as a record including a matrix and an error code.
Functions of this type return matrix with dimension 0, whereas procedures including the same code return matrix with correct dimensions (and values)
Additional information:
fpc -MDelphi test1.dpr
Free Pascal Compiler version 2.1.3 [2007/04/11] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Darwin for i386
Compiling test1.dpr
Assembling test
Linking test1
76 lines compiled, 0.4 sec
./test1
matrix A, number of lines : 3
0.500 0.200 0.800
0.200 0.200 0.900
0.800 0.900 3.100
matrix B, number of lines : 0
matrix C, number of lines : 3
0.500 0.200 0.800
0.200 0.200 0.900
0.800 0.900 3.100
end
Mantis conversion info:
- Mantis ID: 8685
- Version: 2.2.0
- Fixed in version: 2.2.0
- Fixed in revision: 7345 (#d4978a95)