Bug 13355 – Inherited classes doesn't see a parent's default ctor added by mixin template (DMD 2.066)

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2014-08-22T12:00:46Z
Last change time
2024-12-13T18:24:37Z
Assigned to
No Owner
Creator
MarisaLovesUsAll
Moved to GitHub: dmd#18871 →

Comments

Comment #0 by alexandrond — 2014-08-22T12:00:46Z
mixin template foobar() { this() { } } class One { mixin foobar; this(int a) //without this ctor all will be fine { this(); //default ctor is available from here, but not from Two } }; class Two:One { }; ... Error: Cannot implicitly generate a default ctor when base class main.One is missing a default ctor. Windows 7, x86_64, DMD 2.066.
Comment #1 by robert.schadek — 2024-12-13T18:24:37Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18871 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB