------- Comment #8 from jason at gcc dot gnu dot org 2009-03-05 16:08 ------- The bug is in lookup_template_class's search for a matching partial instantiation; it finds Outer<void>::Inner<T*> and assumes it's Outer<void>::Inner<T> without checking the innermost template args.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17410