www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11173] New: `public` alias to an instantiation of `private` template doesn't work

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11173

           Summary: `public` alias to an instantiation of `private`
                    template doesn't work
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com



13:36:15 MSD ---
b.d:
---
private void f(T)() { }

alias fi = f!int;
---

main.d:
---
import b;

void main()
{ fi(); } // Error: function b.f!int.f is not accessible from module main
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 05 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11173




Commit pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/eeaa5f45b84f0bb1e344f763b1dd3959844b6c54
[Workaround] Add Issue 11173 workaround.

Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=11173

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 05 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11173


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |
                 CC|                            |andrej.mitrovich gmail.com
           Severity|normal                      |enhancement



05:10:42 PDT ---
If it's not defined in the spec it's an enhancement. See also
http://d.puremagic.com/issues/show_bug.cgi?id=4533 which asks for the opposite
and the newsgroup discussion it links to.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 05 2013