[Issue 15064] [CTFE] std.range.enumerate is not CTFE-able
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Sep 18 06:14:13 UTC 2017
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15064
b2.temp at gmx.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com
--- Comment #4 from b2.temp at gmx.com ---
Remove the field names of the Tuple used in enumerate and it works i.e change
the definition
"alias ElemType = Tuple!(Enumerator, "index", ElementType!Range, "value");"
to
"alias ElemType = Tuple!(Enumerator, ElementType!Range);"
(+ fix the unittests that use the field name by using indexers as postfix)
and it works, although No idea why. This is just a clue, not a fix. Removing
the field names would break code.
--
    
    
More information about the Digitalmars-d-bugs
mailing list