[Issue 5770] New: Template constructor bypass access check
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 23 06:49:53 PDT 2011
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: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at 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: -------
More information about the Digitalmars-d-bugs
mailing list