diff options
| author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-23 21:03:01 +0000 |
|---|---|---|
| committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-23 21:03:01 +0000 |
| commit | 8173d80aef500e3325938bbff881a569d8bb51ec (patch) | |
| tree | ea6d54ba1fb63d8cc661d04df277796e02ed2ac1 /libiberty/testsuite | |
| parent | 04d4a109e1232f31139f1fe22db79552334b9f59 (diff) | |
| download | ppe42-gcc-8173d80aef500e3325938bbff881a569d8bb51ec.tar.gz ppe42-gcc-8173d80aef500e3325938bbff881a569d8bb51ec.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145013 138bc75d-0d04-0410-961f-82ee72b054a4
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 cded6b5d71a..0c451184fc4 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) |

