Generics classes + static fields crash compiler
Original Reporter info from Mantis: MageSlayer @MageSlayer
-
Reporter name: Denis Golovan
Original Reporter info from Mantis: MageSlayer @MageSlayer
- Reporter name: Denis Golovan
Description:
Hi
See a small example attached.
A compiler just crashes with following stack in console:
EAccessViolation: Access violation
$080499D5
$0808D780 TFPHASHOBJECT__GETNAME, line 1696 of cclasses.pas
$081E96DD STRING_EVALUATE, line 284 of dbgstabs.pas
$081ED564 TDEBUGINFOSTABS__SYM_STABSTR_EVALUATE, line 1189 of dbgstabs.pas
$081ED8FC TDEBUGINFOSTABS__APPENDSYM_STATICVAR, line 1258 of dbgstabs.pas
$080EE9EA TDEBUGINFO__APPENDSYM, line 397 of dbgbase.pas
$081EE9BB TDEBUGINFOSTABS__INSERTTYPEINFO, line 1535 of dbgstabs.pas
$0819CCAE PROC_UNIT, line 1427 of pmodules.pas
$08186E1B COMPILE, line 395 of parser.pas
$081933B0 TPPUMODULE__LOADPPU, line 1654 of fppu.pas
$0819B77B LOADUNITS, line 842 of pmodules.pas
$0819C447 PROC_UNIT, line 1212 of pmodules.pas
$08186E
That's in fact a regression.
Previously the code was working.
Mantis conversion info:
- Mantis ID: 21550
- Build: svn 20584
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 21270 (#810bd7dd)