https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104847
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:07d7e8b8ae2879241207631fcaeaa83e5e85a240 commit r11-9706-g07d7e8b8ae2879241207631fcaeaa83e5e85a240 Author: Jason Merrill <ja...@redhat.com> Date: Sat Mar 26 20:10:19 2022 -0400 c++: mangling union{1} in template [PR104847] My implementation of union non-type template arguments in r11-2016 broke braced casts of union type, because they are still in syntactic (undigested) form. PR c++/104847 gcc/cp/ChangeLog: * mangle.c (write_expression): Don't write a union designator when undigested. gcc/testsuite/ChangeLog: * g++.dg/abi/mangle-union1.C: New test.