[Issue 15233] TypeTuple causes segfault in dmd 2.68.2

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Oct 22 12:14:28 PDT 2015


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |ag0aep6g at gmail.com

--- Comment #1 from ag0aep6g at gmail.com ---
Reduced:
----
alias TypeTuple(stuff ...) = stuff;
struct Token {}
enum helper = TypeTuple!(Token(), "foo");
----

Workaround: use alias instead of enum:
----
                alias helper = TypeTuple!(fmt[from .. idx1], Token(j, 'd'),
helper!(idx1+2, j+1));
----

--


More information about the Digitalmars-d-bugs mailing list