← Back to index
|
Original Bugzilla link
Bug 7754 – static this() in template is stripped during header gen
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-23T09:29:00Z
Last change time
2012-03-27T00:06:40Z
Keywords
pull
Assigned to
nobody
Creator
code
Comments
Comment #0
by code — 2012-03-23T09:29:21Z
cat > bug.d << CODE struct Foo(T) { shared static this() { } static this() { } } CODE dmd -c -o- -H bug.d cat bug.di // D import file generated from 'bug.d' template Foo(T) { struct Foo { shared static this(); static this(); } } -------- Thus the static constructors are not run.
Comment #1
by k.hara.pg — 2012-03-23T23:37:13Z
https://github.com/D-Programming-Language/dmd/pull/829
Comment #2
by k.hara.pg — 2012-03-23T23:52:46Z
*** Issue 7611 has been marked as a duplicate of this issue. ***
Comment #3
by github-bugzilla — 2012-03-26T22:43:32Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/311d1701d6dc7c454f03fca4d84f62e157e14e5a
Merge pull request #829 from 9rnsr/fix7754 Issue 7754 - static this() in template is stripped during header gen