[Issue 16521] Wrong code generation with switch + static foreach

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Mar 9 11:25:42 PST 2017


https://issues.dlang.org/show_bug.cgi?id=16521

Stefan Koch <uplink.coder at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
                 CC|                            |uplink.coder at gmail.com

--- Comment #4 from Stefan Koch <uplink.coder at gmail.com> ---
There is no such thing as static foreach.
You are using tuple foreach which will force an unrolled loop.

The provided code should error!

--


More information about the Digitalmars-d-bugs mailing list