www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20095] New: core.internal.convert.toUbyte doesn't work with

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

          Issue ID: 20095
           Summary: core.internal.convert.toUbyte doesn't work with
                    -betterC
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: dlang lesderid.net

`core.internal.convert.toUbyte`, and by extension 
`core.internal.hash.hashOf`, doesn't work in -betterC because of the 
CTFE path using dynamic allocation.

See discussion at https://github.com/dlang/druntime/pull/2710

--
Aug 01 2019