From 4b1e14346a08554dc33f71fca980578a7a3e38a2 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 22 Nov 2021 10:13:24 +0100 Subject: openmp: Handle OMP_MASKED in potential_constant_expression_1 [PR103349] WHen adding OMP_MASKED, I apparently forgot to handle it in potential_constant_expression_1, which means we can ICE on it. 2021-11-22 Jakub Jelinek PR c++/103349 * constexpr.c (potential_constant_expression_1): Punt on OMP_MASKED. * g++.dg/gomp/masked-1.C: New test. --- gcc/cp/constexpr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/cp/constexpr.c') diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c index c8f9d5f..d66a565 100644 --- a/gcc/cp/constexpr.c +++ b/gcc/cp/constexpr.c @@ -8686,6 +8686,7 @@ potential_constant_expression_1 (tree t, bool want_rval, bool strict, bool now, case OMP_SINGLE: case OMP_SECTION: case OMP_MASTER: + case OMP_MASKED: case OMP_TASKGROUP: case OMP_TARGET_UPDATE: case OMP_TARGET_ENTER_DATA: -- cgit v1.1