diff options
author | Jason Merrill <jason@redhat.com> | 2020-02-24 16:22:45 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-02-24 16:22:45 -0500 |
commit | 907401f2f910847b4581daf44d02e2cf9bfad220 (patch) | |
tree | 62944635bfb084ad2cbca8b2c66cb86c03cdf508 /gcc/cp/ChangeLog | |
parent | 90e1d25b60630d45fe1092abeb8f4d7b6c5e2da2 (diff) | |
download | gcc-907401f2f910847b4581daf44d02e2cf9bfad220.zip gcc-907401f2f910847b4581daf44d02e2cf9bfad220.tar.gz gcc-907401f2f910847b4581daf44d02e2cf9bfad220.tar.bz2 |
c++: Fix decltype of empty pack expansion of parm.
In unevaluated context, we only substitute a single PARM_DECL, not the
entire chain, but the handling of an empty pack expansion was missing that
check.
gcc/cp/ChangeLog
2020-02-24 Jason Merrill <jason@redhat.com>
PR c++/93140
* pt.c (tsubst_decl) [PARM_DECL]: Check cp_unevaluated_operand in
handling of TREE_CHAIN for empty pack.
Diffstat (limited to 'gcc/cp/ChangeLog')
-rw-r--r-- | gcc/cp/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8749208..116445b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,11 @@ 2020-02-24 Jason Merrill <jason@redhat.com> + PR c++/93140 + * pt.c (tsubst_decl) [PARM_DECL]: Check cp_unevaluated_operand in + handling of TREE_CHAIN for empty pack. + +2020-02-24 Jason Merrill <jason@redhat.com> + PR c++/92852 * constexpr.c (maybe_constant_value): Don't unshare if the cached value is the same as the argument. |