Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #271 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Incorrect filename in array out of bounds error in template in different module

Reported by: Deewiant Assigned to: lindquist
Priority: major Milestone:
Component: backend Version: hg tip
Keywords: Cc:

Description

a.d:

import b;

int main() { return C!().f(); }

b.d:

module b;

template C() {
	static int f() {
		int[] x;
		return x[0];
	}
}

Result of running:

$ ldc a.d b.d && ./a
tango.core.Exception.ArrayBoundsException@a.d(6): Array index out of bounds

The line number is correct, but the file is a.d instead of b.d.

Change History

04/26/09 13:43:53 changed by Deewiant

  • summary changed from Incorrect debug info for array out of bounds in template in different module to Incorrect filename in array out of bounds error in template in different module.

This isn't about debug info, it's about the file name in an error.

04/27/09 07:31:15 changed by lindquist

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in rev [1271]

Copyright © 2008, LDC Development Team.