------- Comment #25 from jason at gcc dot gnu dot org 2006-06-30 21:13 ------- Fixing this is simplified by DR 45: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#45
Under DR 45, S1 now has all the access of its enclosing class. We should be able to just implement that DR and this problem will go away. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18681