digitalmars.D.bugs - [Issue 5017] New: Access Violation when calling a template function of outer class (from inner one)
- d-bugmail puremagic.com (45/45) Oct 08 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5017
http://d.puremagic.com/issues/show_bug.cgi?id=5017
Summary: Access Violation when calling a template function of
outer class (from inner one)
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: 2korden gmail.com
---
Test case:
class A
{
class B
{
void bar()
{
return foo!(int)();
}
}
int foo(T)()
{
return 42;
}
this()
{
b = new B();
}
B b;
}
void main()
{
A a = new A();
a.b.bar();
}
I think the problem is that prior to calling A.foo!(int) it tries to execute an
A.invariant(), but `this' pointer is null for some reason.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 08 2010








d-bugmail puremagic.com