https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58315
--- Comment #18 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- Created attachment 34852 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34852&action=edit reduced and indented testcase Memory explosion occurs while compiling test03() function. Memory usage before calling vt_find_locations is 382MB and after is 650MB. Memory usage after calling vt_emit_notes is 1322MB.