https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80613
--- Comment #1 from David Binderman <dcb314 at hotmail dot com> --- Reduced C++ code is extern "C" void free(void *); char *a(int); extern "C" char *strdup(const char *); int b; void c() { for (;;) { char d = *a(b); char *e = strdup(&d); free(e); } }