Bug 1936 – Error with no line number (array dimension overflow)
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-03-24T14:15:00Z
Last change time
2014-02-24T15:31:24Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
technocrat7
Comments
Comment #0 by technocrat7 — 2008-03-24T14:15:34Z
I think that every error message should provide a filename and line number. This error message provides neither.
Example:
<code>
static int[] x = [-1: 1];
void main()
{
}
</code>
On compile, the error message omits filename and line number:
"Error: array dimension overflow"
I think the reason is in dmd/init.c:
(line 379) error("array dimension overflow");
I think it should be:
(line 379) error(loc, "array dimension overflow");
This problem was reported by a user in a newsgroup:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=11827