← Back to index
|
Original Bugzilla link
Bug 8953 – Parser rejects qualifier after destructor i.e. `~this() <qualifier> { }`
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-03T04:38:00Z
Last change time
2013-05-08T17:31:07Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
verylonglogin.reg
Comments
Comment #0
by verylonglogin.reg — 2012-11-03T04:38:17Z
--- struct S { this(int) const { } // ok this(this) const { } // ok ~this() const { } // Error: semicolon expected following function declaration } --- Workaround: put qualifier before destructor: --- const ~this() { } // ok ---
Comment #1
by henning — 2013-05-08T11:31:11Z
https://github.com/D-Programming-Language/dmd/pull/1979
Comment #2
by github-bugzilla — 2013-05-08T17:29:00Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/a959f220ce7d6191d2247b5355acb9755fbe8e36
Merge pull request #1979 from hpohl/9401 fix issues 8347, 8953 and 9401 - destructor and nothrow syntax