Skip to content

Internal error 2006111510 and O2-level optimization

Original Reporter info from Mantis: Stein2051 @Stein2051
  • Reporter name: Max Nazhalov

Description:

Compiler exits with i.e. 2006111510 when taking a reference to the var/out parameter of the function being inlined, and O2 optimization level is selected.

Steps to reproduce:

Attached two samples (prog and unit) and corresponding FPCDebug output.
FPC was invoked as follows:
fpc -n -Fu&LtPos;library_path>/* -O2 -vvp test1.pp
fpc -n -Fu&LtPos;library_path>/* -O2 -vvp test2.pp

Mantis conversion info:

  • Mantis ID: 26534
  • OS: Win32
  • Build: 28261
  • Platform: i386
  • Version: 2.7.1
  • Fixed in version: 3.0.1
  • Fixed in revision: 32621 (#e926169f)
  • Monitored by: » Hixie (Ian Hickson)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information