Bug 12874 – Wrong file name in range violation error

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-07T14:19:00Z
Last change time
2014-06-07T23:51:00Z
Keywords
diagnostic, pull, wrong-code
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2014-06-07T14:19:11Z
module test; import a; void main() { int x; foo!(x)(); } module a; template foo(alias x) { void check(int[] arr) { auto n = arr[0]; } void foo() { check([]); } } $ dmd test.d a.d $ test.exe [email protected](5): Range violation The runtime error should print a.d(5).
Comment #1 by k.hara.pg — 2014-06-07T14:27:46Z
Comment #2 by github-bugzilla — 2014-06-07T23:50:59Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/14951f3b22bf13361bf440e09d34892b00a298f8 fix Issue 12874 - Wrong file name in range violation error https://github.com/D-Programming-Language/dmd/commit/b421955806baa13320ccb8ca5ab5b3f067da0c08 Merge pull request #3639 from 9rnsr/fix12874 Issue 12874 - Wrong file name in range violation error