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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 3 05:08:45 PDT 2013


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 at puremagic.com
        ReportedBy: henning at still-hidden.de


--- Comment #0 from Henning Pohl <henning at 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: -------


More information about the Digitalmars-d-bugs mailing list