[Issue 5017] New: Access Violation when calling a template function of outer class (from inner one)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 8 04:38:08 PDT 2010
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 at puremagic.com
ReportedBy: 2korden at gmail.com
--- Comment #0 from Koroskin Denis <2korden at gmail.com> 2010-10-08 04:37:41 PDT ---
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: -------
More information about the Digitalmars-d-bugs
mailing list