[Issue 4196] New: incorrect module report with error in template mixin
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 16 04:12:42 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4196
Summary: incorrect module report with error in template mixin
Product: D
Version: unspecified
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: strtr at despam.it
--- Comment #0 from strtr at despam.it 2010-05-16 04:12:42 PDT ---
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)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list