digitalmars.D.bugs - [Issue 3563] New: Enum values returned by ref from a function trigger compiler error.
- d-bugmail puremagic.com (31/31) Dec 01 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3563
- d-bugmail puremagic.com (17/17) Feb 20 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3563
http://d.puremagic.com/issues/show_bug.cgi?id=3563 Summary: Enum values returned by ref from a function trigger compiler error. Product: D Version: 2.036 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: e.insafutdinov gmail.com 15:19:15 PST --- The following code: enum Foo { A, B } Foo x = Foo.A; ref Foo bar() { return x; } ref const(Foo) baz() { return bar(); } results in compiler error: bug.d(12): Error: bar() is not mutable If you replace Foo with int - the bug disappears. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 01 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3563 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|NEW |RESOLVED CC| |yebblies gmail.com Platform|Other |All Version|2.036 |D2 Resolution| |FIXED OS/Version|Linux |All Works with current D2 (2.058). This is a duplicate, I just don't know where the other bug report is. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 20 2012