http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56895
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-09 18:37:36 UTC --- Though, there are several other maybe_constant_value calls now in cp/typeck.c, and only 2 of them are guarded with !processing_template_decl. So I guess the warn_for_div_by_zero argument (twice) and RSHIFT_EXPR/LSHIFT_EXPR would need the same treatment.