https://issues.dlang.org/show_bug.cgi?id=19189
Issue ID: 19189 Summary: Accessing private template member allowed Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: critical Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: yshu...@gmail.com Example: template A(T) { private enum A = T.sizeof; } template B(T) { private enum C = T.sizeof; } void main() { enum x = A!int; enum y = B!int.C; } Expected: Compilation error (or warning) Actual: No error generated --