www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1567] New: call to private super-constructor should not be allowed

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1567

           Summary: call to private super-constructor should not be allowed
           Product: D
           Version: 1.015
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: konfusious gmx.de


When inheriting from a super class with private constructor, a call to the
private super-constructor from inside the inheriting class is not recognized as
error.

Example:
module abstractClass;

abstract class AbstractClass
{
    private this()
    {
    }
}
---------------------
import abstractClass;

class InheritingClass : AbstractClass
{
    public this()
    {
        super();
    }
}


-- 
Oct 10 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1567


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |yebblies gmail.com



https://github.com/D-Programming-Language/dmd/pull/113

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 11 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1567


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



19:46:08 PDT ---
https://github.com/D-Programming-Language/dmd/commit/632708a0ff7b16a393903c5213734dadbbbd1b08

https://github.com/D-Programming-Language/dmd/commit/8e5b1cde9de9d1db7e61591cab8ca9338a0b1df6

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