[Issue 9218] [2.061] Correct signature of struct opCmp no longer accepts enum structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 10 22:08:48 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9218



--- Comment #10 from Kenji Hara <k.hara.pg at gmail.com> 2013-01-10 22:08:42 PST ---
(In reply to comment #9)
> Ok, that workabout is not quite complete (perhaps this is a different bug
> now?). While it solves the code in the original comment, this code doesn't
> work:
> 
[snip]
> 
> Why would enum A zero = A(); work but enum A zero = {}; not work? Is it safe
> (in terms of inadvertent GC usage) to use A() instead of {}?

This is a different bug which is unrelated to the ref-non-ref overloading.
I opened a new bug report.

Issue 9293 - enum struct with StructInitializer reports weird error

So this is an invalid bug, because:

(In comment #1)
> Struct literals (manifests included) are no longer lvalues in 2.061, this is by
design.

-- 
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