Thread overview
[Issue 10542] New: implicitly generated class ctor doesnt inherit base class ctor attributes
Jul 04, 2013
Henning Pohl
Jul 04, 2013
Henning Pohl
Jul 04, 2013
Henning Pohl
Jul 04, 2013
Kenji Hara
July 04, 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@puremagic.com
        ReportedBy: henning@still-hidden.de


--- Comment #0 from Henning Pohl <henning@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: -------
July 04, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10542



--- Comment #1 from Henning Pohl <henning@still-hidden.de> 2013-07-04 07:27:07 PDT ---
s/M/D

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 04, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10542


Henning Pohl <henning@still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #2 from Henning Pohl <henning@still-hidden.de> 2013-07-04 07:32:59 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2297

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 04, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10542



--- Comment #3 from github-bugzilla@puremagic.com 2013-07-04 10:10:10 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6505a8d8affb22d4d6c9c2da465e26f1d5648016
fix issue 10542 - implicitly generated class ctor doesnt inherit base
class ctor attributes

https://github.com/D-Programming-Language/dmd/commit/9af380a868c5e63bcfa1dc7d2b184d9764b680e0 Merge pull request #2297 from hpohl/10542

fix issue 10542 - implicitly generated class ctor doesn't inherit base class ctor attributes

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 04, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10542


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------