diff options
author | Marek Polacek <polacek@redhat.com> | 2018-10-10 21:11:18 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2018-10-10 21:11:18 +0000 |
commit | 8e9558f029123e00008d3ef464922128d018f0fc (patch) | |
tree | fa1f1f4d7da86e9609be996a72bfb7854cd04aac /libcpp | |
parent | c6e8b0b3af4a2f1db9d1b13f54280c5401c53e4c (diff) | |
download | gcc-8e9558f029123e00008d3ef464922128d018f0fc.zip gcc-8e9558f029123e00008d3ef464922128d018f0fc.tar.gz gcc-8e9558f029123e00008d3ef464922128d018f0fc.tar.bz2 |
PR c++/87567 - constexpr rejects call to non-constexpr function.
* constexpr.c (potential_constant_expression_1) <case FOR_STMT>: Return
true if the condition is always false.
<case WHILE_STMT>: Likewise.
* g++.dg/cpp1y/constexpr-loop7.C: New test.
From-SVN: r265027
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions