]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Fix decltype of empty pack expansion of parm.
authorJason Merrill <jason@redhat.com>
Wed, 26 Feb 2020 18:03:23 +0000 (13:03 -0500)
committerJason Merrill <jason@redhat.com>
Wed, 26 Feb 2020 19:09:03 +0000 (14:09 -0500)
commit1a8996b0a7b238180f4a10b19b1e90b33e5b2df0
treef8212127cb2f9dc0093b5d7e21922006edea5883
parentb6678d67c4b7471c25130b6c60a9087e02f31179
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-26  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.
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/variadic-parm1.C [new file with mode: 0644]