www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5770] New: Template constructor bypass access check

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: k.hara.pg gmail.com



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: -------
Mar 23 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5770


SomeDude <lovelydear mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear mailmetrash.com



PDT ---
In the same vein, see also issue 7236

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 23 2012