[Issue 4352] New: Destructor of inner struct not callale

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 19 22:49:49 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4352

           Summary: Destructor of inner struct not callale
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrei at metalanguage.com


--- Comment #0 from Andrei Alexandrescu <andrei at metalanguage.com> 2010-06-19 22:49:47 PDT ---
Compiling this:

struct Array(T)
{
    struct Payload
    {
        ~this()
        {
        }
    }
    RefCounted!(Payload, RefCountedAutoInitialize.no) _data;
}

unittest
{
    Array!int a;
}

ends with error message:

/home/andrei/code/dmd/phobos/std/typecons.d(365): Error: destructor
test.Array!(int).Array.Payload.~this () is not callable using argument types ()

The reported location is mistaken too.

-- 
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