Crash in compiler (generics?)
Original Reporter info from Mantis: marco @marcoonthegit
-
Reporter name: Marco van de Voort
Original Reporter info from Mantis: marco @marcoonthegit
- Reporter name: Marco van de Voort
Description:
Compile the attached unit, I get an exception like in additional information.
Code near problem spot looks like this:
constructor TPoolablePool<t>.create;
begin
inherited;
factory:=TPoolableFactory<t>.create;
end;
Additional information:
Fatal: Compilation aborted
An unhandled exception occurred at $0052015E:
EAccessViolation: Access violation
$0052015E SUB_EXPR, line 3497 of pexpr.pas
$005209CC EXPR, line 3715 of pexpr.pas
$005055C3 STATEMENT, line 1202 of pstatmnt.pas
$00505A1C STATEMENT_BLOCK, line 1340 of pstatmnt.pas
$004FB9FA BLOCK, line 351 of psub.pas
$004FE685 TCGPROCINFO__PARSE_BODY, line 1724 of psub.pas
$004FEB1C READ_PROC_BODY, line 1874 of psub.pas
$004FEFF6 READ_PROC, line 2029 of psub.pas
$004FF42D READ_DECLARATIONS, line 2153 of psub.pas
$004FB8C2 BLOCK, line 295 of psub.pas
$004FE685 TCGPROCINFO__PARSE_BODY, line 1724 of psub.pas
$005521DF PROC_UNIT, line 955 of pmodules.pas
$004395FC COMPILE, line 347 of parser.pas
$00417AB9 COMPILE, line 266 of compiler.pas
$00401876 main, line 246 of pp.pas
Error: d:\pp32\bin\i386-win32\ppc386.exe returned an error exitcode
Mantis conversion info:
- Mantis ID: 24953
- Build: 2013-09-03 +/- 17:00
- Platform: win32
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 25410 (#d0350767)