Bug 4196 – incorrect module report with error in template mixin

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-05-16T04:12:42Z
Last change time
2021-03-17T13:52:07Z
Keywords
diagnostic
Assigned to
No Owner
Creator
strtr

Comments

Comment #0 by strtr — 2010-05-16T04:12:42Z
module main; import t_def; class C{ mixin T!(); } void main(){ C c = new C(); c.func(); } -- module t_def; template T() { int[] arr; public void func() { arr[1] = 42; } } -- run main.exe Error: ArrayBoundsError main.d(8) should be t_def.d(8)
Comment #1 by razvan.nitu1305 — 2021-03-17T13:52:07Z
This has been fixed in git head.