www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14660] New: std.range.choose() is not CTFE'able

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

          Issue ID: 14660
           Summary: std.range.choose() is not CTFE'able
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

The trouble is caused by the use of the void[] buffer, which is cast to the
right type, and the cast fails in CTFE.

--
Jun 07 2015