[Issue 10995] CTFE failures for structs with void initialized members
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 12 00:08:09 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10995
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic, ice
Summary|[REG]CTFE failures for |CTFE failures for structs
|structs with void |with void initialized
|initialized members |members
Severity|regression |normal
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2013-09-12 00:08:07 PDT ---
This is not a regression. The change in behaviour is an accepts-invalid bug
that was fixed. In both cases, an uninitialized variable is indeed being read.
To get the intended behaviour, use
-enum i = T.init.a;
+enum i = T.a.init;
In the first test case, the second error message is a bit useless and should be
removed.
And the second case, the error message is so bad it's practically a internal
compiler error.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list