Doesn't compile when multiple interfaces with same name are defined in different namespaces and being implemented in one class.
Original Reporter info from Mantis: ExSystem
-
Reporter name: ExSystem
Original Reporter info from Mantis: ExSystem
- Reporter name: ExSystem
Description:
As described in the title.
Steps to reproduce:
1.open the project uploaded using CodeTyphon or Lazarus.
2.compile the project.
3.a successful build are expected, but errors would be generated as shown below:
Hint: (11030) Start of reading config file /usr/local/codetyphon/fpc/fpc64/bin/x86_64-darwin/fpc.cnf
Hint: (11031) End of reading config file /usr/local/codetyphon/fpc/fpc64/bin/x86_64-darwin/fpc.cnf
Free Pascal Compiler version 3.3.1 [2021/01/10] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
(1002) Target OS: Darwin for x86_64
(3104) Compiling project1.ppr
(3104) Compiling rr.ss.b.pas
(9009) Assembling rr.ss.b
/Users/ExSystem/DelphiProjects/test1/lib/x86_64-darwin/unit4.s:178:1: error: invalid symbol redefinition
_WRPR_UNIT4_
$_TFOO__IINTERFACE1_
_0___SYSTEM
_TINTERFACEDOBJECT_
__$_QUERYINTERFACE
TGUIDformal
$LONGINT:
^
/Users/ExSystem/DelphiProjects/test1/lib/x86_64-darwin/unit4.s:187:1: error: invalid symbol redefinition
_WRPR_UNIT4_
$_TFOO__IINTERFACE1_
_1___SYSTEM
_TINTERFACEDOBJECT_
____ADDREF
LONGINT:
^
/Users/ExSystem/DelphiProjects/test1/lib/x86_64-darwin/unit4.s:196:1: error: invalid symbol redefinition
_WRPR_UNIT4_
$_TFOO__IINTERFACE1_
_2___SYSTEM
_TINTERFACEDOBJECT_
____RELEASE
LONGINT:
^
/Users/ExSystem/DelphiProjects/test1/lib/x86_64-darwin/unit4.s:205:1: error: invalid symbol redefinition
_WRPR_UNIT4_
$_TFOO__IINTERFACE1_
_3___UNIT4
_TFOO_
__$$_P1:
^
(3104) Compiling rr.ss.c.pas
(9009) Assembling rr.ss.c
(3104) Compiling unit4.pas
(9009) Assembling unit4
unit4.pas(41) Error: (9007) Error while assembling exitcode 1
unit4.pas(41) Fatal: (10026) There were 2 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/local/codetyphon/fpc/fpc64/bin/x86_64-darwin/ppcx64 returned an error exitcode
Mantis conversion info:
- Mantis ID: 38385
- OS: MacOS
- OS Build: 11.1
- Platform: Intel x86 64bit
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 48411 (#0ab4515e)
- Monitored by: » ExSystem (ExSystem)