https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106863
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 53722 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53722&action=edit gcc13-pr106863.patch If we can mangle void{} the same as void(), then this patch achieves that (or we could call build_functional_cast always, but for !processing_template_decl it will in the end just return void_node). Otherwise, we'd need to mangle void_node somehow (how?), but void_node doesn't always imply void{}, it is created for many other cases.