wasm32: Internal error 200108222
## Summary This code bellow generate an internal error on wasm32 compiler. ## System Information * Operating system: Linux Ubuntu * Processor architecture: x86-64 * Compiler version: Free Pascal Compiler version 3.3.1-11109-g7c21b37105 [2022/05/26] for wasm32 * Device: Computer ## Steps to reproduce Compile the example project for wasm32-wasi target. ## Example Project ``` program test; uses sysutils; var LStart: TDateTime; begin LStart := DateTimeToTimeStamp(Now).Time; end. ``` ## What is the current bug behavior? Fatal: Internal error 200108222 ## What is the expected (correct) behavior? Compile without error as with linux x86-64 target. ## Relevant logs and/or screenshots ``` Free Pascal Compiler version 3.3.1-11109-g7c21b37105 [2022/05/26] for wasm32 Copyright (c) 1993-2022 by Florian Klaempfl and others Target OS: The WebAssembly System Interface (WASI) Compiling /home/wasm_tests/test.pas testvariant.pas(9,13) Fatal: Internal error 200108222 Fatal: Compilation aborted Error: /home/fpcupdeluxe/fpc/bin/x86_64-linux/ppcrosswasm32 returned an error exitcode ``` ## Possible fixes If i replace TDateTime by a longint, it's work.
issue