The following patch can fix an ICE when compiling with LIPO. OK for google-4_9?
Thanks, Dehao Index: gcc/l-ipo.c =================================================================== --- gcc/l-ipo.c (revision 225685) +++ gcc/l-ipo.c (working copy) @@ -731,6 +731,7 @@ lipo_cmp_type (tree t1, tree t2) case NULLPTR_TYPE: return 1; case TEMPLATE_TYPE_PARM: + case TEMPLATE_TEMPLATE_PARM: return 1; default: gcc_unreachable ();