[Issue 18267] array comparison broken in 2.078.3
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 27 13:34:04 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18267
Mike Franklin <slavo5150 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |slavo5150 at yahoo.com
--- Comment #4 from Mike Franklin <slavo5150 at yahoo.com> ---
Attributing `opEquals` with `nothrow` resolves the linker error:
struct S
{
P payload;
alias payload this;
}
struct P
{
auto opEquals(T)(T other) const nothrow //*** Needs nothrow ***/
{
static assert(is(typeof(performOp!(S[], T))));
return const(S[]).init == other;
}
}
bool performOp(T, A)(T value, A arg)
{
return value == arg;
}
--
More information about the Digitalmars-d-bugs
mailing list