www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15052] New: dmd/std/utf.d error on variable


          Issue ID: 15052
           Summary: dmd/std/utf.d error on variable
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: pedrolopes gmx.com

Created attachment 1550
  --> https://issues.dlang.org/attachment.cgi?id=1550&action=edit
the utf.d file

dmd  2.068.1-1

it fails when using dub to compile a file. 

/usr/include/dlang/dmd/std/utf.d(3128): Error: variable
std.utf.byCodeUnit!(inout(char)[]).byCodeUnit.ByCodeUnitImpl.r only parameters
or stack based variables can be inout
/usr/include/dlang/dmd/std/utf.d(3278): Error: template instance
std.utf.byCodeUnit!(inout(char)[]) error instantiating
/usr/include/dlang/dmd/std/string.d(386):        instantiated from here:

actually this is not just one error it is a load of them,

Sep 12 2015