diff options
author | Marek Polacek <polacek@redhat.com> | 2018-03-22 08:08:07 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2018-03-22 08:08:07 +0000 |
commit | 08ad2797c60b66f8a6ca54652cdead0aa6ea721f (patch) | |
tree | f9899378cfb63c1e7528b102e9bd49112f356ce1 /gcc/function.c | |
parent | 2170d4b6ddca526b53e87215dbf6fab5973000c7 (diff) | |
download | gcc-08ad2797c60b66f8a6ca54652cdead0aa6ea721f.zip gcc-08ad2797c60b66f8a6ca54652cdead0aa6ea721f.tar.gz gcc-08ad2797c60b66f8a6ca54652cdead0aa6ea721f.tar.bz2 |
re PR c++/84854 (ICE: unexpected expression in cxx_eval_constant_expression, at cp/constexpr.c:4774)
PR c++/84854
* semantics.c (finish_if_stmt_cond): Check if the type of the condition
is boolean.
* g++.dg/cpp1z/constexpr-if15.C: New test.
* g++.dg/cpp1z/constexpr-if16.C: New test.
From-SVN: r258756
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions