Am 12.03.2016 22:45 schrieb "Mazola Winstrol" <mazofei...@gmail.com>: > > Hello, > > Fpc version: 3.0 (the one provided by Lazarus). > > Please confirm if this is a bug regarding operator overloading and type specialization. It is a quite difficult to explain, but i will try. > [snip] > > It seems the compiler treats the type MyRecordDefinitionA.TMyRecord and MyRecordDefinitionB.TMyRecord as being the same type. So, the compiler try to apply the logical operator and of MyRecordDefinitionB.TMyRecord in the integer specialization of the type MyRecordDefinitionA.TMyRecord.
It does not treat them the same, it simply picks the wrong one (as in "doesn't correctly respect the unit qualifier"). You should see a different (yet no less wrong) behavior if you turn around the units in the uses-clause. Please report. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal