fix issue 10752 - accessing a private cached symbol a second time
doesn't cause an error in __traits(compiles, ...)
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, ...)