www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19319] New: No line number when std.math is missing for x ^^ y

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

          Issue ID: 19319
           Summary: No line number when std.math is missing for x ^^ y
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Something like:
---
__gshared x = 0;
auto y = 7 ^^ y;
---

Will produce the error:

Error: module `math` is in file 'std/math.d' which cannot be read
Specify path to file 'std/math.d' with -I switch


Which is not very indicative of where compilation went wrong.

See https://github.com/dlang/dmd/pull/8852

--
Oct 20 2018