[Issue 12827] [ICE] Segfault on immutable field self-initialization
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Sep 11 12:01:18 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12827
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |hsteoh at quickfur.ath.cx
Resolution|--- |FIXED
--- Comment #3 from hsteoh at quickfur.ath.cx ---
On git HEAD, the first code example now gives a compile error:
-------
test.d(4): Deprecation: variable test.Foo!5.Foo.i immutable field with
initializer should be static, __gshared, or an enum
test.d(4): Error: circular initialization of i
test.d(9): Error: template instance test.Foo!5 error instantiating
-------
The second example also:
-------
test.d(3): Deprecation: variable test.Test.i immutable field with initializer
should be static, __gshared, or an enum
test.d(3): Error: circular initialization of i
-------
Seems the PR has fixed this bug.
--
More information about the Digitalmars-d-bugs
mailing list