PR c++/71814 - mangling sizeof... (sP and sZ)
authorJason Merrill <jason@redhat.com>
Fri, 15 Jul 2016 18:38:15 +0000 (14:38 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 15 Jul 2016 18:38:15 +0000 (14:38 -0400)
commit34bbc4c502157fb08e6eba1d09380e2599ec3720
tree1ee707547ea5521e317e522ed83b170324ec4a05
parentd022c55a4b8bdac385efadf42ba2a374c5960418
PR c++/71814 - mangling sizeof... (sP and sZ)

gcc/cp/
* mangle.c (write_expression): Handle sizeof... an argument pack.
libiberty/
* cp-demangle.c (cplus_demangle_operators): Add sP and sZ.
(d_print_comp_inner): Handle them.
(d_template_args_1): Split out from d_template_args.
(d_args_length): New.

From-SVN: r238389
12 files changed:
gcc/common.opt
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/testsuite/g++.dg/cpp0x/variadic-mangle1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/variadic-mangle1a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/variadic-mangle2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/variadic-mangle2a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/variadic-mangle3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/variadic-mangle3a.C [new file with mode: 0644]
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected