Bug 17663 – header generation (-H) is broken with public override of private default

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-07-18T21:09:37Z
Last change time
2018-01-29T15:16:43Z
Assigned to
No Owner
Creator
Eyal

Comments

Comment #0 by eyal — 2017-07-18T21:09:37Z
Example breakage: // test_di_gen.d: private: public struct Export {} dmd -H generates the following di file: // D import file generated from 'test_di_gen.d' private public struct Export { } Needless to say "private public" does not compile. background: I use "private:" in beginning of all my modules/structs to reverse the default - I want my exports to be explicit and narrow.
Comment #1 by razvan.nitu1305 — 2018-01-29T12:12:27Z
Comment #2 by github-bugzilla — 2018-01-29T15:16:42Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/22e6cf676223024fc8442b9f6ebb01b8e08f8f49 Fix Issue 17663 - header generation (-H) is broken with public override of private default https://github.com/dlang/dmd/commit/9111e4bdf440411aefdea86c8642810af9b92e77 Merge pull request #7806 from RazvanN7/Issue_17663 Fix Issue 17663 - header generation (-H) is broken with public override of private default