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

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-08-03T05:08:00Z
Last change time
2013-08-12T11:12:01Z
Assigned to
nobody
Creator
henning

Comments

Comment #0 by henning — 2013-08-03T05:08:44Z
module a; private int priv; module b; import a; void main() { static assert(!__traits(compiles, priv)); static assert(!__traits(compiles, priv)); // fails }
Comment #1 by github-bugzilla — 2013-08-12T09:00:33Z
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, ...)