January 27, 2014 [Issue 12009] New: local import and "unable to resolve forward reference" error | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2014-01-27 01:46:25 PST --- 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: ------- |
April 03, 2014 [Issue 12009] local import and "unable to resolve forward reference" error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | https://d.puremagic.com/issues/show_bug.cgi?id=12009 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2014-04-02 23:04:59 PDT --- 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: ------- |
Copyright © 1999-2021 by the D Language Foundation