Bug 7956 – Missing error line number with wrong function name

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-04-20T17:55:00Z
Last change time
2013-11-26T19:43:29Z
Keywords
diagnostic
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-04-20T17:55:02Z
Wrong D2 code: import std.stdio; void main() { open("foo"); } DMD 2.060alpha shows: test.d: Error: module test std.stdio.fopen is private test.d(3): Error: undefined identifier open, did you mean function fopen?
Comment #1 by andrej.mitrovich — 2012-12-02T11:41:08Z
*** Issue 9104 has been marked as a duplicate of this issue. ***
Comment #2 by bearophile_hugs — 2012-12-02T11:48:31Z
Sorry for the dupes, Andrej. In dmd 2.061alpha the error messages are now worsened: Error: module test std.stdio.fopen is private test.d(3): Error: undefined identifier open, did you mean function fopen?
Comment #3 by andrej.mitrovich — 2012-12-02T11:56:46Z
(In reply to comment #2) > Sorry for the dupes, Andrej. No problem. This spellchecker issue is reported in multiple places by multiple people, it's a common occurrence.
Comment #4 by yebblies — 2013-11-26T19:43:29Z
Now prints DMD v2.065 DEBUG testx.d(3): Error: function core.stdc.stdio.open (const(char)* filename, int flags, ...) is not callable using argument types (string)