c++: Readd [LR]ROTATE_EXPR support to constexpr.c [PR94067]
authorJakub Jelinek <jakub@redhat.com>
Mon, 9 Mar 2020 20:52:18 +0000 (21:52 +0100)
committerJakub Jelinek <jakub@redhat.com>
Mon, 9 Mar 2020 20:52:18 +0000 (21:52 +0100)
commit81fa6d7321dd9b645d86de4a8a6967c603f176e3
treefbf797669532e0c3e7372cc8a1cce0aa95bcfcf6
parent5dc1390b41db5c1765e25fd21dad1a930a015aac
c++: Readd [LR]ROTATE_EXPR support to constexpr.c [PR94067]

Since r10-6527-gaaa26bf496a646778ac861aed124d960b5bf549f fold_for_warn
will perform maybe_constant_value even on some cp_fold produced trees and
so can include rotate exprs which were removed last fall from constexpr.c

2020-03-09  Jakub Jelinek  <jakub@redhat.com>

PR c++/94067
Revert
2019-10-11  Paolo Carlini  <paolo.carlini@oracle.com>

* constexpr.c (cxx_eval_constant_expression): Do not handle
RROTATE_EXPR and LROTATE_EXPR.

* g++.dg/warn/Wconversion-pr94067.C: New test.
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wconversion-pr94067.C [new file with mode: 0644]