www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19268] New: BetterC turns off DRuntime for CTFE


          Issue ID: 19268
           Summary: BetterC turns off DRuntime for CTFE
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ilyayaroshenko gmail.com

dmd -betterC

mixin(`void foo(){}`.idup);

pass in DMD 2.78
fails in DMD >=2.79

Error: `TypeInfo` cannot be used with -betterC

This cause BetterC regression in mir.bitmanip and mir-cpuid. The workaround for
mir.bitmanip was added to mir-algorithm v2.0.6.

Sep 26 2018