diff options
author | Marek Polacek <polacek@redhat.com> | 2019-08-28 02:22:29 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-08-28 02:22:29 +0000 |
commit | 8692693732e89806058d3b9c91132fb83661b214 (patch) | |
tree | 4d6fb359b2dfa84fd95432293af3448db1c32dd2 /gcc/builtins.c | |
parent | 14da3939da3adcef84816573caa9d93c7367507e (diff) | |
download | gcc-8692693732e89806058d3b9c91132fb83661b214.zip gcc-8692693732e89806058d3b9c91132fb83661b214.tar.gz gcc-8692693732e89806058d3b9c91132fb83661b214.tar.bz2 |
PR c++/81676 - bogus -Wunused warnings in constexpr if.
* semantics.c (maybe_mark_exp_read_r): New function.
(finish_if_stmt): Call it on THEN_CLAUSE and ELSE_CLAUSE.
* g++.dg/cpp1z/constexpr-if31.C: New test.
* g++.dg/cpp1z/constexpr-if32.C: New test.
From-SVN: r274982
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions