polymorphic methods with Namespace Collision exposes flaw
Original Reporter info from Mantis: aurawin
-
Reporter name: Andrew Brunner
Original Reporter info from Mantis: aurawin
- Reporter name: Andrew Brunner
Description:
Free Pascal Compiler version 2.7.1 [2011/12/19] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling nsTest.pas
Compiling uNameSpace.pas
nsTest.pas(30,24) Warning: Function result does not seem to be set
nsTest.pas(15,5) Note: Private field "TMyClass.FFolders" is never used
nsTest.pas(17,5) Note: Private field "TMyClass.FMyEvent" is never used
nsTest.pas(38,3) Error: Asm: Duplicate label PNSTEST
_TOTHERCLASS_
__$_MYEVENT
TITEM
nsTest.pas(42,3) Error: Asm: Duplicate label PNSTEST
_TOTHERCLASS_
__$_MYEVENT
TITEM
nsTest.pas(53,1) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)
Steps to reproduce:
fpc nsTest.pas
Mantis conversion info:
- Mantis ID: 20940
- OS: Ubuntu
- OS Build: 11.10
- Build: 19877
- Platform: x64 Linux
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 20163 (#310c396c)