diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-11-27 14:13:22 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-11-27 14:13:22 +0100 |
commit | cb358080c908eedc600855bd689f5bd349f5ac98 (patch) | |
tree | f6d8a5086d6acee3218bc636a68083d0ac0969c2 /gcc/tree.c | |
parent | 04f915037850166c05c73baf3d6e2ba10c790ea1 (diff) | |
download | gcc-cb358080c908eedc600855bd689f5bd349f5ac98.zip gcc-cb358080c908eedc600855bd689f5bd349f5ac98.tar.gz gcc-cb358080c908eedc600855bd689f5bd349f5ac98.tar.bz2 |
re PR c++/81675 (attribute(noreturn) of destructor in :? not honored)
PR c++/81675
* cp-gimplify.c (cp_fold) <case COND_EXPR>: Don't return immediately
for VOID_TYPE_P COND_EXPRs, instead fold the operands and if op0 is
INTEGER_CST, ensure that both op1 and op2 are non-NULL and fall
through into normal folding, otherwise just rebuild x if any op
changed.
* g++.dg/warn/pr81675.C: New test.
From-SVN: r255167
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions