August 25, 2018 [Issue 19189] New: Accessing private template member allowed | ||||
---|---|---|---|---|
| ||||
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: nobody@puremagic.com Reporter: yshuiv7@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 -- |
Copyright © 1999-2021 by the D Language Foundation