Bug 15052 – dmd/std/utf.d error on variable std.utf.byCodeUnit!(inout(char)[]).byCodeUnit.ByCodeUnitImpl.r

Status
RESOLVED
Resolution
WORKSFORME
Severity
critical
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-09-13T00:24:23Z
Last change time
2019-12-05T08:47:35Z
Assigned to
No Owner
Creator
pedrolopes

Attachments

IDFilenameSummaryContent-TypeSize
1550utf.dthe utf.d filetext/x-dsrc118469

Comments

Comment #0 by pedrolopes — 2015-09-13T00:24:23Z
Created attachment 1550 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: byDchar!(inout(char)[]) actually this is not just one error it is a load of them,
Comment #1 by pedrolopes — 2015-09-13T04:16:42Z
Solves! clean all phobos files and reinstalled DMD. old files from phobos had not been replaced during some DMD update installation.
Comment #2 by anton — 2015-10-21T06:55:20Z
Unfortunately, this issue is still actual. Just ran into it while trying to build dlangui with dmd 2.068.2 on openSUSE Tumbleweed. After manual deletion of phobos dir and reinstallation of dmd errors persist.