public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110706] New: [OpenMP] C++ class mapping fails to map reference-type members
@ 2023-07-17 17:06 burnus at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: burnus at gcc dot gnu.org @ 2023-07-17 17:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110706
           Summary: [OpenMP] C++ class mapping fails to map reference-type
                    members
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: openmp, wrong-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

I probably get the syntax slightly wrong – and the example is stupid, but it
looks as if reference types do not get mapped but they should:

#pragma omp target enter data \
  map(to:*this.0_1 [len: 16]) \
  map(attach:this [bias: 0])

// ------------

struct T {
  int A[5];
};

static struct T y;

struct T2 {
  struct T &t = y;
  int x;
  T2 () : x(5) { }
void foo() {
  #pragma omp target enter data map(to:this[:1])
}
};

static struct T2 x;

int main() {
 x.foo();
}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-17 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-17 17:06 [Bug c++/110706] New: [OpenMP] C++ class mapping fails to map reference-type members burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).