[Issue 17130] [Reg 2.074] ambiguous implicit super call when inheriting core.sync.mutex.Mutex

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 12 07:04:53 PST 2017


https://issues.dlang.org/show_bug.cgi?id=17130

ZombineDev <petar.p.kirov at gmail.com> changed:

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

--- Comment #6 from ZombineDev <petar.p.kirov at gmail.com> ---
Reopening because even though this was fixed:
class MyMutex : Mutex
{
    this() // OK after https://github.com/dlang/dmd/pull/6513
    {
    }
}

the OP issue is still there:
class MyMutex : Mutex
{
     // NG
}

bug.d(3): Error: core.sync.mutex.Mutex.__ctor called with argument types ()
matches both:
/home/zombinedev/code/repos/dlang/druntime/import/core/sync/mutex.di(21):    
core.sync.mutex.Mutex.this()
and:
/home/zombinedev/code/repos/dlang/druntime/import/core/sync/mutex.di(25):    
core.sync.mutex.Mutex.this()
bug.d(3): Error: class mutex_attr.MyMutex cannot implicitly generate a default
ctor when base class core.sync.mutex.Mutex is missing a default ctor

--


More information about the Digitalmars-d-bugs mailing list