http://d.puremagic.com/issues/show_bug.cgi?id=5770
Summary: Template constructor bypass access check Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: k.hara...@gmail.com --- Comment #0 from Kenji Hara <k.hara...@gmail.com> 2011-03-23 06:46:34 PDT --- Test code: ---- module a struct S { private: this(int n){} } struct T { private: this(A...)(A args){} } ---- module b; import a; void main() { // auto s = S(10); // is not accessible auto t = T(20); // compile succeeded, NG } ---- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------