[Issue 518] New: Destructors cannot be const or auto - or scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 15 05:28:50 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=518
Summary: Destructors cannot be const or auto - or scope
Product: D
Version: 0.174
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: diagnostic
Severity: trivial
Priority: P5
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: deewiant at gmail.com
class Foo {
scope ~this() {
}
}
The above doesn't compile due to the error "function asdf.Foo._dtor functions
cannot be const or auto". This is a deprecated reference to the old meaning of
"auto" and should be removed.
Having just "auto" should probably generate an error like "destructors don't
have a type" or fail similarly to how "int ~this() {}" does.
--
More information about the Digitalmars-d-bugs
mailing list