re PR c++/92992 (Side-effects dropped when decltype(nullptr) typed expression is...
commit7d35cad11152895d239f103f1fffbd6f0cb58c8b
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 14:27:21 +0000 (14 15:27 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 15:01:45 +0000 (14 16:01 +0100)
treeba3e13491d31eafc58dadd8b96a4baad0e21996b
parentb69684fdac2ac4bd128150631de6391c786e2184
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.
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nullptr45.C [new file with mode: 0644]