------- Comment #2 from jason at gcc dot gnu dot org 2006-09-07 07:18 ------- If we resolve A::X to int while parsing the template definition, we need to check access then, too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26693