D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 13355 - Inherited classes doesn't see a parent's default ctor added by mixin template (DMD 2.066)
Summary: Inherited classes doesn't see a parent's default ctor added by mixin template...
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Windows
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-22 12:00 UTC by MarisaLovesUsAll
Modified: 2024-12-13 18:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description MarisaLovesUsAll 2014-08-22 12:00:46 UTC
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 dlangBugzillaToGithub 2024-12-13 18:24:37 UTC
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