Error of RTTI for nested types with identical names
Original Reporter info from Mantis: kazalex
-
Reporter name: Kazantsev Alexey
Original Reporter info from Mantis: kazalex
- Reporter name: Kazantsev Alexey
Description:
Error on generation of RTTI for nested types with identical names:
testunit.pas(33) Error: Asm: Duplicate label RTTI_TESTUNIT_
$_TREASON
testunit.pas(33) Error: Asm: Duplicate label RTTI_TESTUNIT_
$_TREASON_s2o
testunit.pas(33) Error: Asm: Duplicate label RTTI_TESTUNIT_
$_TREASON_o2s
testunit.pas(33) Fatal: There were 3 errors compiling module, stopping
Steps to reproduce:
Use this unit for reproducing of issue:
---------------------------------------
Unit testUnit;
{$mode delphi}
Interface
Type
//
TClass1 = Class
Type
TReason = (rnOne, rnTwo);
End;
//
//
TClass2 = Class
Type
TReason = (rn1, rn2);
End;
//
Implementation
End.
Mantis conversion info:
- Mantis ID: 26069
- Build: 27643
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 28958 (#07ab3fbe)
- Monitored by: » Hixie (Ian Hickson), » kazalex (Kazantsev Alexey)