diff options
author | Marek Polacek <polacek@redhat.com> | 2019-02-01 00:30:46 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-02-01 00:30:46 +0000 |
commit | e9fa2f6ded6a0d7aeb43a0818930d73704626cc7 (patch) | |
tree | 80a02bf472408a511fef7f08648d67741d08a72c /gcc/tree-cfg.c | |
parent | bb9160aeb0a10681b1328f097fa5c9be6264d88f (diff) | |
download | gcc-e9fa2f6ded6a0d7aeb43a0818930d73704626cc7.zip gcc-e9fa2f6ded6a0d7aeb43a0818930d73704626cc7.tar.gz gcc-e9fa2f6ded6a0d7aeb43a0818930d73704626cc7.tar.bz2 |
PR c++/88983 - ICE with switch in constexpr function.
* constexpr.c (cxx_eval_switch_expr): Use SWITCH_COND and SWITCH_BODY.
(cxx_eval_constant_expression) <case COND_EXPR>: Don't look for the
label in the else branch if we found it in the then branch.
* g++.dg/cpp1y/constexpr-88983.C: New test.
From-SVN: r268438
Diffstat (limited to 'gcc/tree-cfg.c')
0 files changed, 0 insertions, 0 deletions