http://d.puremagic.com/issues/show_bug.cgi?id=7216
Summary: [CTFE] Can't call struct member function using pointer field Product: D Version: D1 & D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: verylonglogin....@gmail.com --- Comment #0 from Denis <verylonglogin....@gmail.com> 2012-01-04 10:51:19 MSK --- --- struct S { S* ptr; int t; // no errors if `t` is commented void f() { } } int f() { S s0, s1; s0.ptr = &s1; s0.ptr.f(); // Error: couldn't find field ptr of type S in S(s1,0) return 0; } void main() { enum e = f(); } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------