Internal Error 200405231 raised when manually compiling Lazarus


<h3><details><summary>Original Reporter info from Mantis: <small>CuriousKit @CuriousKit</small></summary><small>

- **Reporter name:** J. Gareth Moreton
</small></details></h3>

## Description:

When attempting to manually build Lazarus (I do so in order to test peephole optimisations), I get internal error 200405231, thus blocking me from doing any further work on the compiler.

## Steps to reproduce:

Run the following from your Lazarus source directory, replacing directories to match your personal system:

\\pp\bin\x86_64-win64\ppcx64 -Mobjfpc -FEC:\Users\NLO-012\Documents\Programming\lazarus -g- -Xs -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-db\src\sqldb -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\libtar\src -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fpmkunit\src -FuC:\Users\NLO-012\Documents\Programming\lazarus\packager -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fppkg\src -FuC:\Users\NLO-012\Documents\Programming\fpc\compiler\systems -FlC:\Users\NLO-012\Documents\Programming\fpc\units\x86_64-win64\rtl -FuC:\Users\NLO-012\Documents\Programming\fpc\rtl\win64 -FiC:\Users\NLO-012\Documents\Programming\fpc\rtl\inc -FiC:\Users\NLO-012\Documents\Programming\fpc\rtl\win -FiC:\Users\NLO-012\Documents\Programming\fpc\rtl\win64 -FiC:\Users\NLO-012\Documents\Programming\fpc\rtl\x86_64 -FiC:\Users\NLO-012\Documents\Programming\fpc\rtl\win\wininc -FuC:\Users\NLO-012\Documents\Programming\fpc\rtl\win -FiC:\Users\NLO-012\Documents\Programming\fpc\rtl\objpas\sysutils -FiC:\users\NLO-012\Documents\Programming\lazarus\ide\include -FuC:\Users\NLO-012\Documents\Programming\fpc\rtl\inc -FuC:\Users\NLO-012\Documents\Programming\fpc\rtl\objpas -FuC:\users\NLO-012\Documents\Programming\lazarus\lcl\interfaces\win32 -FuC:\users\NLO-012\Documents\Programming\lazarus\components\lazutils -FiC:\Users\NLO-012\Documents\Programming\fpc\rtl\objpas\classes -FuC:\users\NLO-012\Documents\Programming\fpc\packages\rtl-objpas\src\inc -FuC:\users\NLO-012\Documents\Programming\fpc\packages\fcl-base\src -FuC:\users\NLO-012\Documents\Programming\lazarus\lcl -FuC:\users\NLO-012\Documents\Programming\fpc\packages\fcl-image\src -FiC:\users\NLO-012\Documents\Programming\lazarus\lcl\include -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\winunits-base\src -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\rtl-objpas\src\win -FiC:\Users\NLO-012\Documents\Programming\fpc\packages\rtl-objpas\src\inc -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\paszlib\src -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\hash\src -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\pasjpeg\src -FuC:\users\NLO-012\Documents\Programming\lazarus\lcl\widgetset -FuC:\users\NLO-012\Documents\Programming\lazarus\components\lazutils -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-process\src -FiC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-process\src\win -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\chm\src -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-json\src -FuC:\users\NLO-012\Documents\Programming\lazarus\lcl\forms -FuC:\users\NLO-012\Documents\Programming\lazarus\components\codetools -FiC:\users\NLO-012\Documents\Programming\lazarus\ide\include\win64 -FuC:\users\NLO-012\Documents\Programming\lazarus\components\ideintf -FuC:\users\NLO-012\Documents\Programming\lazarus\components\lazcontrols -FuC:\users\NLO-012\Documents\Programming\lazarus\components\debuggerintf -FuC:\users\NLO-012\Documents\Programming\lazarus\debugger -FuC:\users\NLO-012\Documents\Programming\lazarus\components\synedit -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-registry\src -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\regexpr\src -FuC:\users\NLO-012\Documents\Programming\lazarus\packager\registration -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-db\src\base -FuC:\users\NLO-012\Documents\Programming\lazarus\components\ideintf -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-res\src -FuC:\users\NLO-012\Documents\Programming\lazarus\packager -FuC:\users\NLO-012\Documents\Programming\lazarus\designer -FuC:\users\NLO-012\Documents\Programming\lazarus\ide\frames -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-xml\src -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-extra\src\win -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\winunits-jedi\src -FuC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-db\src\dbase -FiC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-process\src\winall -FiC:\Users\NLO-012\Documents\Programming\fpc\packages\fcl-base\src\win -FuC:\users\NLO-012\Documents\Programming\lazarus\components\lazdebuggergdbmi -FuC:\users\NLO-012\Documents\Programming\lazarus\debugger\frames -FuC:\users\NLO-012\Documents\Programming\lazarus\converter -FuC:\users\NLO-012\Documents\Programming\lazarus\packager\frames -vs C:\Users\NLO-012\Documents\Programming\lazarus\ide\lazarus.pp -B -a -s -O2

## Additional information:

The compiler was built using the following command line:

make distclean all install DATA2INC=C:\Users\NLO-012\Documents\Programming\fpc\utils\bin\x86_64-win64\data2inc.exe OPT="-O4"

Find attached my error log (generated by specifying "> errorlog.log 2>&1" after the command above.

## Mantis conversion info:

- **Mantis ID:** 36775
- **OS:** Microsoft Windows
- **OS Build:** 10 Professional
- **Build:** r44289
- **Platform:** x86_64-win64
- **Version:** 3.3.1
- **Fixed in version:** 3.3.1
- **Fixed in revision:** 46220 (#c17ad509e2c3589a781f96da8128eb3f23188806),46274 (#2500f8432f418c5485c55ad4eb4ea8d084fa71fe)
- **Monitored by:** » 0h2o (0h2o), » @SAmeis (Simon Ameis), » Dean Qin (Dean Qin), » @jpuhl (Julian Puhl)

Story points: 100.0