https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87967
--- Comment #8 from David Binderman <dcb314 at hotmail dot com> --- Reduced code: template <int a, typename b> void c(b d) { d >>= a * 4; } template <typename e, typename f> void g(e, f) { char h; c<1>(h); } int i; void j() { g(j, i); }