[Issue 19941] [ICE] Segmentation fault in ImplicitConvTo::visit(AddrExp*) at dmd/dcast.d(980)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 5 19:21:21 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19941

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Related fail tests:

immutable d = 42;
immutable b = new a;
class a { int c = d; }
---
immutable b = new a;
immutable d = 42;
class a { int c = d; }
---
immutable b = new a;
class a { int c = d; }
immutable d = 42;


Swap the order of `class a` and `immutable b` declarations, and compilation
succeeds, making this another forward reference bug.

--


More information about the Digitalmars-d-bugs mailing list