http://d.puremagic.com/issues/show_bug.cgi?id=10542
Summary: implicitly generated class ctor doesnt inherit base
class ctor attributes
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Henning Pohl <[email protected]> 2013-07-04 07:26:45
PDT ---
class B
{
this() nothrow pure @safe { }
}
class D : B
{
}
void test() nothrow pure @safe
{
new M;
}
----
main.d(12): Error: pure function 'main.test' cannot call impure function
'main.D.this'
main.d(12): Error: safe function 'main.test' cannot call system function
'main.D.this'
main.d(12): Error: constructor this is not nothrow
main.d(10): Error: function 'main.test' is nothrow yet may throw
----
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------