www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10752] New: accessing a private cached symbol a second time doesn't cause an error in __traits(compiles, ...)

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

           Summary: accessing a private cached symbol a second time
                    doesn't cause an error in __traits(compiles, ...)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: henning still-hidden.de


--- Comment #0 from Henning Pohl <henning still-hidden.de> 2013-08-03 05:08:44
PDT ---
module a;
private int priv;

module b;
import a;
void main()
{
    static assert(!__traits(compiles, priv));
    static assert(!__traits(compiles, priv)); // fails
}

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



--- Comment #1 from github-bugzilla puremagic.com 2013-08-12 09:00:33 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b642f547ae8fada7017eb8e8908446dc4174faf0
fix issue 10752 - accessing a private cached symbol a second time
doesn't cause an error in __traits(compiles, ...)

https://github.com/D-Programming-Language/dmd/commit/5f0c3a12de2a15116fac109b39912bfcb22842b8
Merge pull request #2448 from hpohl/10752

fix issue 10752 - accessing a private cached symbol a second time doesn't cause
an error in __traits(compiles, ...)

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


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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