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

            Bug ID: 95236
           Summary: OMP 'GOMP_MAP_STRUCT': a structure is more than the
                    sum of all its fields?
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: openacc, openmp
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tschwinge at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org, jules at gcc dot gnu.org
  Target Milestone: ---

Created attachment 48571
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48571&action=edit
'itu_.c'

..., and the answer (technically) may easily be "yes", considering ABI-mandated
padding, for example.

But: is that user friendly?  Consider the test case I'm attaching, where
'struct s' consists of fields 'a', 'b', which both get mapped -- yet, 's'
itself isn't considered to be.  At the user level, should a structure equal the
sum of all its fields, or "do we have to be complicated"?

I have not fully thought that through, just noticed this when looking into
something else.  I also have not verified OpenMP behavior.

Reply via email to