------- Comment #1 from tristan at wibberley dot org 2008-08-16 23:34 ------- > fail.cc: In instantiation of pairs<pair<int, int>, pair<int, int> >: > fail.cc:14: instantiated from here > fail.cc:10: error: mismatched argument pack lengths while expanding pair<AS, > BS> > fail.cc: In instantiation of pairs<pair<int, int>, pair<int, int> > >::mismatched_packs: > fail.cc:14: instantiated from here > fail.cc:10: internal compiler error: tree check: expected class type, have > exceptional (error_mark) in instantiate_class_template, at cp/pt.c:6945
4.3.1 doesn't ICE (I can't get details as somebody was kind enough to try this for me) and instead reports: t.cpp:10: error: mismatched argument pack lengths while expanding pair<AS, BS> t.cpp:10: error: mismatched argument pack lengths while expanding pair<AS, BS> where the ICE is reported above with -DNO_ICE this is compiled successfully -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36846