Thread overview | |||||
---|---|---|---|---|---|
|
December 14, 2013 [Issue 11739] New: Cannot initialize const member declared void | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=11739 Summary: Cannot initialize const member declared void Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: monarchdodra@gmail.com --- Comment #0 from monarchdodra@gmail.com 2013-12-14 06:41:19 PST --- //---- struct S { const(int) i = void; this(int j) { i = j; } } //---- Error: cannot modify const expression i //---- The error goes away if we remove the "void". It seems to me like a "hole" in the const member initialization feature of D? See also (may be duplicate of): https://d.puremagic.com/issues/show_bug.cgi?id=10643 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 14, 2013 [Issue 11739] Cannot initialize const member declared void | ||||
---|---|---|---|---|
| ||||
Posted in reply to monarchdodra@gmail.com | https://d.puremagic.com/issues/show_bug.cgi?id=11739 --- Comment #1 from monarchdodra@gmail.com 2013-12-14 06:47:59 PST --- Yeah, that's a duplicate. Sorry. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 14, 2013 [Issue 11739] Cannot initialize const member declared void | ||||
---|---|---|---|---|
| ||||
Posted in reply to monarchdodra@gmail.com | https://d.puremagic.com/issues/show_bug.cgi?id=11739 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-12-14 11:14:53 PST --- *** This issue has been marked as a duplicate of issue 10643 *** -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation