Bug 16648 – Header generation skips postblit

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-10-29T14:12:25Z
Last change time
2017-10-31T08:48:01Z
Assigned to
No Owner
Creator
Temtaime

Comments

Comment #0 by temtaime — 2016-10-29T14:12:25Z
It discards this(this) on the struct if it is in templated function. But keeps other members.
Comment #1 by razvan.nitu1305 — 2017-10-31T08:48:01Z
Running dmd -H test.d on git HEAD where test.d is: void foo()() { struct C { this(this) {} } } results in a .di file which contains : // D import file generated from 'test.d' void foo()() { struct C { this(this); } } This seems like the correct behavior. Closing as fixed.