D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5745 - Missing error line number with lazy argument
Summary: Missing error line number with lazy argument
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 critical
Assignee: No Owner
URL:
Keywords: diagnostic, patch
Depends on:
Blocks:
 
Reported: 2011-03-16 16:45 UTC by bearophile_hugs
Modified: 2011-08-11 22:51 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2011-03-16 16:45:30 UTC
D2 code:

pure void foo(lazy int x) {}
void main() {
    foo(1);
}


DMD 2.052 shows an error without line number:
Error: cannot have lazy parameters to a pure function
Comment 1 Don 2011-03-16 17:13:29 UTC
Please mark all missing line number bugs as 'critical' + 'diagnostic'. They are among the most frustrating diagnostic bugs, especially when they happen on a large code base. (They're not really much better than an internal compiler error).