https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83902
--- Comment #1 from David Binderman <dcb314 at hotmail dot com> --- Reduced C++ code is extern "C" void *memset(void *, int, unsigned long); template <int a> class b { void c() { memset(4, 0, 4 * a * sizeof(float)); } };