[Issue 17380] [REG 2.074.0] Compiler segfaults on undefined symbol
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun May 7 04:32:01 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17380
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice
CC| |ag0aep6g at gmail.com
--- Comment #1 from ag0aep6g at gmail.com ---
(In reply to kai from comment #0)
> Created attachment 1645 [details]
> Source file demonstrating the bug.
Reduced:
----
struct Int128
{
Uint128 opCast()
{
return ThisTypeDoesNotExistsAndCrahesTheCompiler;
}
alias opCast this;
}
struct Uint128
{
Int128 opCast() { return Int128.init; }
alias opCast this;
}
----
Neither this reduction nor the original code compile for me with dmd 2.073.2.
So this doesn't seem like a regression in 2.074 to me.
--
More information about the Digitalmars-d-bugs
mailing list