Thread overview
[Issue 1936] New: Error with no line number (array dimension overflow)
Mar 24, 2008
d-bugmail
Jul 09, 2008
d-bugmail
Jul 09, 2008
d-bugmail
Jul 10, 2008
d-bugmail
March 24, 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@digitalmars.com
        ReportedBy: technocrat7@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


-- 

July 09, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1936





------- Comment #1 from clugdbug@yahoo.com.au  2008-07-09 07:10 -------
Fixed DMD1.032


-- 

July 09, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1936


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




-- 

July 10, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1936





------- Comment #2 from bugzilla@digitalmars.com  2008-07-09 22:41 -------
Fixed dmd 1.032 and 2.016


--