[Issue 1936] New: Error with no line number (array dimension overflow)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 24 12:15:36 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1936
Summary: Error with no line number (array dimension overflow)
Product: D
Version: 1.028
Platform: PC
URL: http://www.digitalmars.com/webnews/newsgroups.php?art_gr
oup=digitalmars.D.learn&article_id=11827
OS/Version: Windows
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: technocrat7 at gmail.com
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
--
More information about the Digitalmars-d-bugs
mailing list