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

          Issue ID: 19460
           Summary: C style cast error has wrong line number for functions
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: elpenguin...@gmail.com

```
void main() {
    (void)
        main();
}
```
On this example, the error points to line 3 when the cast is really on line 2.

It seems DMD uses the last line of the function call rather than the actual
line the cast is on.

--

Reply via email to