------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-04-23 15:28 ------- The TYPE_NO_ACCESS_CHECK_P is there because we check access on each tsubst TYPENAME_TYPE, regardless whether the typename is actually appear in the code or it come from a typedef. The patch was only intended for 4.0. For mainline, I am working on the approach I mention as a stage 2 project. Still need some more time to finish it.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18681