www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18752] New: std.file.read runnable example fails

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

          Issue ID: 18752
           Summary: std.file.read runnable example fails
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: Bastiaan Veelo.net

Pressing "Run" on https://dlang.org/library/std/file/read.html gives

```
core.exception.AssertError onlineapp.d(8): Assertion failure
----------------
??:? _d_assertp [0x9dda8549]
??:? _Dmain [0x9dd9cd58]
=== Bypassed ===
std.file.FileException std/file.d(351): /tmp/deleteme.dmd.unittest.pid24: No
such file or directory
----------------
??:?  safe bool std.file.cenforce!(bool).cenforce(bool, lazy const(char)[],
immutable(char)[], ulong) [0x9ddaeeb7]
??:?  trusted void[] std.file.readImpl(const(char)[], const(char)*, ulong)
[0x9ddad5db]
??:?  safe void[] std.file.read!(immutable(char)[]).read(immutable(char)[],
ulong) [0x9dd9e3ad]
??:? _Dmain [0x9dd9cccc]
=== ~Bypassed ===
/tmp/deleteme.dmd.unittest.pid241234
```

Best regards,
Bastiaan.

--
Apr 10 2018