Compiler crashes if an operator overload is defined in implementation section
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
When I define an operator overload in the implementation section of a unit the compiler crashes with an access violation.
I stumpled upon this while I tried to define a record containing overloads and forgot to add the record name before the operator name in the implementation section.
Additional information:
Test unit is attached.
Output of a run "fpc test.pas" is the following:
Free Pascal Compiler version 2.5.1 [2011/04/17] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling struct.pas
Fatal: Compilation aborted
An unhandled exception occurred at $080AA561 :
EAccessViolation : Access violation<br/>
$080AA561
$081406E3
$08137AA1
$08170451
$0806661C
Mantis conversion info:
- Mantis ID: 19213
- OS: Linux
- OS Build: 2.6.35
- Build: 17332
- Platform: i386
- Version: 2.5.1
- Fixed in version: 3.0.0
- Fixed in revision: 19226 (#d714eeb8)