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