digitalmars.D.bugs - [Issue 12009] New: local import and "unable to resolve forward reference" error
- d-bugmail puremagic.com (58/58) Jan 27 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12009
- d-bugmail puremagic.com (10/10) Apr 02 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12009
https://d.puremagic.com/issues/show_bug.cgi?id=12009 Summary: local import and "unable to resolve forward reference" error Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com Test case: struct RefCounted(T) { struct RefCountedStore { private struct Impl { T _payload; } private Impl* _store; } RefCountedStore _refCounted; ~this() { import core.stdc.stdlib : free; } } struct GroupBy(R) { struct SharedInput { Group unused; } struct Group { private RefCounted!SharedInput _allGroups; } } void main() { GroupBy!(int[]) g1; } Output: test.d(5): Error: struct test.RefCounted!(SharedInput).RefCounted.RefCountedStore.Impl unable to resolve forward reference in definition test.d(29): Error: template instance test.RefCounted!(SharedInput) error instantiating test.d(35): instantiated from here: GroupBy!(int[]) test.d(35): Error: template instance test.GroupBy!(int[]) error instantiating -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 27 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12009 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull https://github.com/D-Programming-Language/dmd/pull/3418 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 02 2014