www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7475] New: Regression(2.058 beta): Template member erroneously inaccessible

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

           Summary: Regression(2.058 beta): Template member erroneously
                    inaccessible
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: cbkbbejeap mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap mailinator.com> 2012-02-09
12:00:45 PST ---
a.d:
=====================
import b;

void main()
{
    int x;
    foo!(x);
}
=====================

b.d:
=====================
private template templ(alias al)
{
    enum result = "";
}

void foo(alias al)()
{
    auto x = templ!(al).result;
}
=====================

dmd a.d b.d

-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 09 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7475



--- Comment #1 from github-bugzilla puremagic.com 2012-02-10 01:32:18 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c504c3f9f230ffa75ca79d915da095a6e446dca3
fix Issue 7475 - Regression(2.058 beta): Template member erroneously
inaccessible

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 10 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7475


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


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