c++: mangling for CTAD placeholder
commit37e6c9bd99575752b7122c5d76aa2cf021deb93c
authorJason Merrill <jason@redhat.com>
Sat, 18 Nov 2023 02:57:52 +0000 (17 21:57 -0500)
committerJason Merrill <jason@redhat.com>
Fri, 1 Dec 2023 21:08:35 +0000 (1 16:08 -0500)
tree4550c155ed84c58f4fb0421575f07c7b1a314641
parentc3f281a0c1ca50e4df5049923aa2f5d1c3c39ff6
c++: mangling for CTAD placeholder

Per https://github.com/itanium-cxx-abi/cxx-abi/issues/109 mangle a C++17
CTAD placeholder as its template.

gcc/cp/ChangeLog:

* mangle.cc (write_type): Mangle placeholder as its template.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/nontype-class4.C: Specify ABI v18.
* g++.dg/cpp2a/nontype-class4a.C: New test.
gcc/cp/mangle.cc
gcc/testsuite/g++.dg/cpp2a/nontype-class4.C
gcc/testsuite/g++.dg/cpp2a/nontype-class4a.C [new file with mode: 0644]