[Issue 19460] New: C style cast error has wrong line number for functions
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Dec  2 06:58:36 UTC 2018
    
    
  
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: nobody at puremagic.com
          Reporter: elpenguino+D at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list