Summary: Error line numbers for some run-time functions in
                    debug mode?
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: druntime

--- Comment #0 from 2012-10-17 15:35:01 PDT ---
void main() {
    int[] foo;
    auto bar = new int[10];
    foo[] = bar[];

Currently that code gives a runtime error with no line number, dmd 2.061alpha:

object.Error: lengths don't match for array copy

The stack trace helps find the location of such error, but maybe in debug mode
(-debug) it's worth using a different _d_arraycopy run-time function that
accepts line numbers too (named _d_arraycopy_line or something), so it's able
to generate a more specific error message.

This line number inflates the binary, but in debug mode what's important is to
locate the errors very well.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to