[Issue 8903] Bad code for enum array members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 23 22:34:31 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=8903


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |performance, pull


--- Comment #4 from yebblies <yebblies at gmail.com> 2013-11-24 17:34:28 EST ---
It looks a little like issue 9953, but it isn't.  Because int[8] is a static
array, the array literal is a value type and it is valid to store in an enum.

There is no special casing for static array typed array literals, but there
should be.  They should be created on the stack, then indexed.

https://github.com/D-Programming-Language/dmd/pull/2870

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list