re PR c++/92992 (Side-effects dropped when decltype(nullptr) typed expression is...
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Dec 2019 23:15:52 +0000 (00:15 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 Dec 2019 23:15:52 +0000 (00:15 +0100)
commit6c7b84305a5e686644ee64bfd2d415f3f43fa85b
treecc382e715df3c3c3010ee31a808f3130b7fe8ed3
parent03e487e541c0a43736507654b60267bbe19a5ead
re PR c++/92992 (Side-effects dropped when decltype(nullptr) typed expression is passed to ellipsis)

PR c++/92992
* call.c (convert_arg_to_ellipsis): For decltype(nullptr) arguments
that have side-effects use cp_build_compound_expr.

* g++.dg/cpp0x/nullptr45.C: New test.

From-SVN: r279680
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nullptr45.C [new file with mode: 0644]