digitalmars.D - Possible regression in latest? dmd with inherited inner classes
- Arafel (25/27) May 14 2019 Hi,
- Boris-Barboris (4/7) May 14 2019 Yep, got that thing blocking my upgrade as well.
- Seb (3/5) May 14 2019 Yeah we need to manually bump this, I just did so for you:
Hi, I have found the following regression with the latest dmd: https://run.dlang.io/is/4KdP5s ``` class A { class I { } } class B : A { C c; class II : I { void fun() { c = new C(); } } } class C { } void main() { } ``` When tried with the latest DMD it fails withonlineapp.d(10): Error: need this for c of type onlineapp.CWhen I try "All dmd compilers" however I getAll versions: Success and no outputSo I can't pinpoint the exact version, although I assume it'd be the latest one. ldc and ldc-beta compile it without problems. I think this a bug because if I remove the inheritance of II : I, then it works without issue. A.
May 14 2019
On Tuesday, 14 May 2019 at 15:35:15 UTC, Arafel wrote:Hi, I have found the following regression with the latest dmd: https://run.dlang.io/is/4KdP5sYep, got that thing blocking my upgrade as well. The issue apparently is quite old though. Here is a bug report: https://issues.dlang.org/show_bug.cgi?id=16215
May 14 2019
On Tuesday, 14 May 2019 at 15:35:15 UTC, Arafel wrote:When I try "All dmd compilers" however I getYeah we need to manually bump this, I just did so for you: https://github.com/dlang-tour/core-dreg/commit/b22c13446579ad127585de9edf93b4bda181e28eAll versions: Success and no output
May 14 2019