Bug 6677 – static this attributes position

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-09-15T12:54:00Z
Last change time
2015-02-18T03:37:55Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-09-15T12:54:14Z
static this() pure nothrow @safe {} void main() {} DMD 2.055 gives: test.d(1): semicolon expected following function declaration While this compiles: pure nothrow @safe static this() {} void main() {}
Comment #1 by yebblies — 2013-01-16T07:37:10Z
*** Issue 7226 has been marked as a duplicate of this issue. ***
Comment #2 by henning — 2013-08-09T04:56:10Z
Comment #3 by yebblies — 2013-11-20T23:03:28Z
*** Issue 10501 has been marked as a duplicate of this issue. ***
Comment #4 by github-bugzilla — 2014-06-03T13:26:08Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6650dc1aeb168f0c9f1cf9a59f840eed1252077b fix issue 6677 - static this attributes position https://github.com/D-Programming-Language/dmd/commit/f0a7c56f72a492e9b7fbd819456c17727726d148 fix issue 6677 - static this attributes position https://github.com/D-Programming-Language/dmd/commit/170c2b29b956dc9299f7503040dabb3c02f090f4 Merge pull request #3612 from WalterBright/hpohl-6677 fix issue 6677 - static this attributes position
Comment #5 by github-bugzilla — 2014-10-05T08:55:20Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9c7b5ba31a91efb558d6ad50305fb8017b4779b9 Check invalid syntax and redundancy on static constructors Improve diagnostic for issue 6677.
Comment #6 by github-bugzilla — 2015-02-18T03:37:55Z