re PR c++/29535 (ICE in instantiate_class_template, at cp/pt.c:5728)