diff options
author | Jason Merrill <jason@redhat.com> | 2009-03-23 17:03:01 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-03-23 17:03:01 -0400 |
commit | 6afcfe0a8080cf3816e841f0f1c2b96a73baed43 (patch) | |
tree | ea6d54ba1fb63d8cc661d04df277796e02ed2ac1 /libiberty/testsuite | |
parent | 6ab282f65064d9d22b04a89b0958fefbec50ebc3 (diff) | |
download | gcc-6afcfe0a8080cf3816e841f0f1c2b96a73baed43.zip gcc-6afcfe0a8080cf3816e841f0f1c2b96a73baed43.tar.gz gcc-6afcfe0a8080cf3816e841f0f1c2b96a73baed43.tar.bz2 |
pt.c (make_fnparm_pack): Split out from...
* gcc/cp/pt.c (make_fnparm_pack): Split out from...
(instantiate_decl): ...here.
(tsubst_pack_expansion): Handle being called in a late-specified
return type.
* libiberty/cp-demangle.c (d_expression): Handle pack expansion.
(d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
(d_print_subexpr): Don't wrap function parms in ().
(d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
not finding a pack.
From-SVN: r145013
Diffstat (limited to 'libiberty/testsuite')
-rw-r--r-- | libiberty/testsuite/demangle-expected | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected index cded6b5..0c45118 100644 --- a/libiberty/testsuite/demangle-expected +++ b/libiberty/testsuite/demangle-expected @@ -3885,7 +3885,7 @@ java resource java/util/iso4217.properties # decltype/param placeholder test --format=gnu-v3 _Z3addIidEDTplfp_fp0_ET_T0_ -decltype ((parm#1)+(parm#2)) add<int, double>(int, double) +decltype (parm#1+parm#2) add<int, double>(int, double) # decltype/fn call test --format=gnu-v3 _Z4add3IidEDTclL_Z1gEfp_fp0_EET_T0_ @@ -3901,8 +3901,12 @@ void f<int*, float*, double*>(int*, float*, double*) # '.' test --format=gnu-v3 _Z1hI1AIiEdEDTcldtfp_1gIT0_EEET_S2_ -decltype (((parm#1).(g<double>))()) h<A<int>, double>(A<int>, double) +decltype ((parm#1.(g<double>))()) h<A<int>, double>(A<int>, double) # test for typed function in decltype --format=gnu-v3 _ZN1AIiE1jIiEEDTplfp_clL_Z1xvEEET_ -decltype ((parm#1)+((x())())) A<int>::j<int>(int) +decltype (parm#1+((x())())) A<int>::j<int>(int) +# test for expansion of function parameter pack +--format=gnu-v3 +_Z1gIIidEEDTclL_Z1fEspplfp_Li1EEEDpT_ +decltype (f((parm#1+(1))...)) g<int, double>(int, double) |