------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-11-07 15:30 ------- There is actually a tsubst_template_parms call before redeclare_class_template. So the extra template level of friend should be removed. I think it's a latent bug in somewhere in tsubst_* codes for template template parameter.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18276