ARM compiler Access violation after rev 12919
Original Reporter info from Mantis: Legolas
-
Reporter name: Francesco Lombardi
Original Reporter info from Mantis: Legolas
- Reporter name: Francesco Lombardi
Description:
This small program crashes the compiler:
program BothScreens3D;
uses
ctypes, nds9;
begin
gluPerspective(70, 256.0 / 192.0, 0.1, 100);
end.
gluPerspective is from a package (libndsfpc).
Additional information:
A workaround I have found requires to wrap the procedure inside another procedure:
program BothScreens3D;
uses
ctypes, nds9;
procedure Call_gluPerspective(fovy, aspect, zNear, zFar: cfloat);
begin
gluPerspective(fovy, aspect, zNear, zFar);
end;
begin
Call_gluPerspective(70, 256.0 / 192.0, 0.1, 100);
end.
Mantis conversion info:
- Mantis ID: 13596
- Version: 2.3.1
- Fixed in version: 2.4.0
- Fixed in revision: 13054 (#79c70c52)