Bug 13635 – implicit class constructor should instantiate templated base class constructor

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-10-18T19:22:34Z
Last change time
2024-12-13T18:31:53Z
Assigned to
No Owner
Creator
Martin Nowak
Moved to GitHub: dmd#18900 →

Comments

Comment #0 by code — 2014-10-18T19:22:34Z
cat > bug.d << CODE class Base { this(this Derived)() {} } class Foo : Base { // this() { super(); } // explicit constructor needed } CODE dmd -c bug ---- bug.d(6): Error: class bug.Foo Cannot implicitly generate a default ctor when base class bug.Base is missing a default ctor ---- The default constructor code should try to call the super class constructor without arguments instead of detecting a `this()` function.
Comment #1 by robert.schadek — 2024-12-13T18:31:53Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18900 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB