Bug 9401 – destructor and nothrow syntax

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-26T06:27:00Z
Last change time
2015-06-17T21:03:38Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
monarchdodra
See also
http://d.puremagic.com/issues/show_bug.cgi?id=9371

Comments

Comment #0 by monarchdodra — 2013-01-26T06:27:15Z
struct S { nothrow ~this() //LEGAL {} ~this() nothrow //ILLEGAL {} } Illegal: main.d(3): Error: semicolon expected following function declaration. May or may no be related to 9371: http://d.puremagic.com/issues/show_bug.cgi?id=9371
Comment #1 by maxim — 2013-01-26T07:14:32Z
(In reply to comment #0) > struct S > { > nothrow ~this() //LEGAL > {} > > ~this() nothrow //ILLEGAL > {} > } > > Illegal: > main.d(3): Error: semicolon expected following function declaration. > > May or may no be related to 9371: > http://d.puremagic.com/issues/show_bug.cgi?id=9371 It seems that no attribute after ~this() is supported.
Comment #2 by monarchdodra — 2013-04-29T03:38:25Z
(In reply to comment #1) > (In reply to comment #0) > > struct S > > { > > nothrow ~this() //LEGAL > > {} > > > > ~this() nothrow //ILLEGAL > > {} > > } > > > > Illegal: > > main.d(3): Error: semicolon expected following function declaration. > > > > May or may no be related to 9371: > > http://d.puremagic.com/issues/show_bug.cgi?id=9371 > > It seems that no attribute after ~this() is supported. Just re-hit this with "pure". Ping I guess.
Comment #3 by henning — 2013-05-08T03:59:44Z
Comment #4 by github-bugzilla — 2013-05-08T17:28:52Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/48e97a5d59010d687d8833937f604f193b49cdf9 fix issue 9401 - destructor and nothrow syntax 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
Comment #5 by github-bugzilla — 2013-06-03T05:04:32Z
Comment #6 by dmitry.olsh — 2013-09-09T10:36:52Z
*** Issue 9371 has been marked as a duplicate of this issue. ***
Comment #7 by github-bugzilla — 2015-03-29T07:39:11Z
Comment #8 by github-bugzilla — 2015-06-17T21:03:38Z