[Issue 867] New: Error messages refer to _dtor instead of ~this

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 21 04:14:12 PST 2007


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

           Summary: Error messages refer to _dtor instead of ~this
           Product: D
           Version: 1.00
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: deewiant at gmail.com


class Foo { abstract ~this(); }

The above generates "function asdf.Foo._dtor non-virtual functions cannot be
abstract". That should read "asdf.Foo.~this".

class Foo { auto ~this(); }

The above is similar: "function asdf.Foo._dtor functions cannot be const or
auto". With const the behaviour is, of course, the same.

However, a leftover from before "scope" is the following:

class Foo { scope ~this(); }

This emits "function asdf.Foo._dtor functions cannot be const or auto" as well.
This should say something about scope.


-- 



More information about the Digitalmars-d-bugs mailing list