http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47022
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-31 11:01:05 UTC --- Created attachment 22874 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22874 gcc46-pr47022.patch I think we can either handle the bunch of missing types in tsubst_copy as done in this patch, or in the default: case of tsubst_copy if t is a type just call tsubst instead of gcc_unreachable, or call tsubst instead of tsubst_copy on the second argument of VA_ARG_EXPR (which is a type, not expression), or any combination of these.