[Issue 14375] static assert leads to __traits(allMembers) retuning an extra empty entry

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Mar 29 19:35:41 PDT 2015


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

Richard Cattermole <alphaglosined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alphaglosined at gmail.com

--- Comment #1 from Richard Cattermole <alphaglosined at gmail.com> ---
The fix for this is very simple.

https://github.com/rikkimax/dmd/blob/master/src/traits.c#L875

It is untested but it is there.
Ironically this has been as a PR since before 2.066.

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

I've tested it on a built executable locally with that PR added. Works fine.

--


More information about the Digitalmars-d-bugs mailing list