https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86074
Bug ID: 86074 Summary: gcc fails to compile a code sample Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zhonghao at pku dot org.cn Target Milestone: --- Created attachment 44242 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44242&action=edit memory leak The code sample comes from https://bugs.llvm.org/show_bug.cgi?id=20335 The latest llvm can compile the attached code sample, but gcc produces many errors. BTW, the llvm bug report says that the attached code triggers memory leak. Please check whether it also triggers memory leak on GCC.