diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2020-01-15 22:28:46 +0100 |
---|---|---|
committer | Paolo Carlini <paolo.carlini@oracle.com> | 2020-01-15 22:28:46 +0100 |
commit | 83fe2b921830c177e3dee514aa07cbc7c8ceef1c (patch) | |
tree | 9754091a4864e4d6aa92c7df7031bc5253b07d07 /gcc/tree-ssa-loop-niter.c | |
parent | 299ddc612136421f1d9865ea4f2f84f7e3791824 (diff) | |
download | gcc-83fe2b921830c177e3dee514aa07cbc7c8ceef1c.zip gcc-83fe2b921830c177e3dee514aa07cbc7c8ceef1c.tar.gz gcc-83fe2b921830c177e3dee514aa07cbc7c8ceef1c.tar.bz2 |
Fix "PR c++/91073 if constexpr no longer works directly with Concepts."
This is a rather serious regression, filed in July 2019. Luckily the
fix is simple: is localized to parser.c and cp-tree.h in cp and boils
down to only a few lines.
Testing OK on x86_64-linux. Approved off-line by Jason Merrill.
/cp
PR c++/91073
* cp-tree.h (is_constrained_auto): New.
* parser.c (cp_parser_maybe_commit_to_declaration): Correctly
handle concept-check expressions; take a cp_decl_specifier_seq*
instead of a bool.
(cp_parser_condition): Update call.
(cp_parser_simple_declaration): Likewise.
(cp_parser_placeholder_type_specifier): Correctly handle
concept-check expressions.
/testsuite
PR c++/91073
* g++.dg/concepts/pr91073-1.C: New.
* g++.dg/concepts/pr91073-2.C: Likewise.
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
0 files changed, 0 insertions, 0 deletions