https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122658
--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> --- I would try adding the condition && !processing_template_decl to that if block, so that we don't call build_cplus_new when in a template context. This seems consistent with other callers of build_cplus_new which also check !processing_template_decl before calling it.
