https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120753

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |burnus at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Benjamin Schulz from comment #3)
> oh that last comment should have been made in another bug about an internal
> compiler error. Sorry.

This testcase compiles here with
  mpic++ -fopenmp -std=gnu++26

and does not give an ICE.

(Otherwise, it would be good to have slightly reduced testcases; in particular,
tests which do not require MPI.)

* * *


Regarding the this bug report:

   17 | #pragma omp target is_device_ptr(u.t)


This is INVALID. OpenMP requires "7.5.7 is_device_ptr Clause" (here quoting
6.0):

   list of variable list item type

with "5.2.1 OpenMP Argument Lists"

"[C/C++] … A variable list item is a variable or an array section."

and

"[C++] Unless otherwise specified, a variable that is part of an aggregate
variable must not be a variable list item or an extended list item except […;
not applicable here]"


Thu, 'u.t' is not permitted as list item to 'is_device_ptr'.

Reply via email to