www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3933] New: Array memory allocation error lacks a line number

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3933

           Summary: Array memory allocation error lacks a line number
           Product: D
           Version: 2.041
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: sean invisibleduck.org
        ReportedBy: bearophile_hugs eml.cc



This program:

void main() {
    int[] a;
    a.length -= 1;
}


At runtime the compiler shows the following error message, if possible I'd like
to see a line number too:
Memory allocation failed

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 11 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3933


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement



Suggestion from Steven Schveighoffer: once a stacktrace printout is available,
probably there is no need to instrument code like this to show line numbers.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 11 2010