https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87241
--- Comment #2 from Li Peng <poppeter1982 at gmail dot com> --- (In reply to Jonathan Wakely from comment #1) > __cxa_demangle in cp-demangle.c correctly returns -2 (the mangled name is > not valid) but cplus_demangle in cplus-dem.c tries to allocate crazy amounts > of memory. So you can confirm this is a bug, right?