[Issue 10542] New: implicitly generated class ctor doesnt inherit base class ctor attributes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 4 07:26:46 PDT 2013
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: nobody at puremagic.com
ReportedBy: henning at still-hidden.de
--- Comment #0 from Henning Pohl <henning at still-hidden.de> 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: -------
More information about the Digitalmars-d-bugs
mailing list