openmp: Handle OMP_MASKED in potential_constant_expression_1 [PR103349]
authorJakub Jelinek <jakub@redhat.com>
Mon, 22 Nov 2021 09:13:24 +0000 (10:13 +0100)
committerJakub Jelinek <jakub@redhat.com>
Mon, 22 Nov 2021 09:13:24 +0000 (10:13 +0100)
commit4b1e14346a08554dc33f71fca980578a7a3e38a2
tree70bc6bafdbc07070e7936b382bf70afc92faf41f
parentb5844cb0bc8c7d9be2ff1ecded249cad82b9b71c
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  <jakub@redhat.com>

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
gcc/testsuite/g++.dg/gomp/masked-1.C [new file with mode: 0644]