digitalmars.D.bugs - [Issue 12008] New: alias this and "unable to resolve forward reference" error
- d-bugmail puremagic.com (64/64) Jan 27 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12008
- d-bugmail puremagic.com (10/10) Jan 27 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12008
- d-bugmail puremagic.com (12/12) Jan 28 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12008
- d-bugmail puremagic.com (9/9) Jan 28 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12008
- d-bugmail puremagic.com (10/10) Feb 01 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12008
https://d.puremagic.com/issues/show_bug.cgi?id=12008 Summary: alias this and "unable to resolve forward reference" error Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: regression Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com Spin-off compiler regression from: https://d.puremagic.com/issues/show_bug.cgi?id=12000#c1 struct RefCounted(T) { struct RefCountedStore { private struct Impl // line 5 { SharedInput _payload; } private void initialize(A...)(auto ref A args) { import core.memory; } void ensureInitialized() { initialize(); } } RefCountedStore _refCounted; void opAssign(SharedInput rhs) { } int refCountedPayload() { _refCounted.ensureInitialized(); return 0; } int refCountedPayload() inout; alias refCountedPayload this; } struct SharedInput { Group unused; } struct Group { RefCounted!SharedInput _allGroups; // line 45 } void main() {} Output: test.d(5): Error: struct test.RefCounted!(SharedInput).RefCounted.RefCountedStore.Impl unable to resolve forward reference in definition test.d(45): Error: template instance test.RefCounted!(SharedInput) 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=12008 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull https://github.com/D-Programming-Language/dmd/pull/3163 -- 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=12008 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/62252aab2f51170c9c7c32e4f3ae49e08b7a5158 fix Issue 12008 - alias this and "unable to resolve forward reference" error https://github.com/D-Programming-Language/dmd/commit/6b1eaf4e0eb89ec2bc01f0d6db9b694a45de96da [REG2.065a] Issue 12008 - alias this and "unable to resolve forward reference" error -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 28 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12008 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 28 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12008 Commit pushed to 2.065 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/00b4138457d5cf2bc0cf33d1a69b028d3a50c40d [REG2.065a] Issue 12008 - alias this and "unable to resolve forward reference" error -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 01 2014