[Issue 23272] [REG2.099] CTFE error of typeid comparison ==
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 20 19:49:44 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23272
Adam D. Ruppe <destructionator at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |destructionator at gmail.com
--- Comment #4 from Adam D. Ruppe <destructionator at gmail.com> ---
The code that does it is:
// to bypass any opCast that may be present on the original class.
return .opEquals!(Object, Object)(*cast(Object*) &lhs, *cast(Object*)
&rhs);
And appears plain `cast() lhs, cast() rhs` instead of the pointer cast will
also bypass opCast so i think this is a fairly easy fix.
--
More information about the Digitalmars-d-bugs
mailing list