https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93465
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-invalid-code |openmp Status|NEW |ASSIGNED Last reconfirmed|2020-01-28 00:00:00 |2020-3-4 Component|c++ |middle-end Assignee|unassigned at gcc dot gnu.org |tschwinge at gcc dot gnu.org --- Comment #5 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- ACK, thanks for the report and initial analysis. Not sure if this is actually supposed to be valid or invalid code (but of course we shouldn't ICE either way). That GCC 9 accepts this doesn't mean too much, given that we don't know what it's supposed to mean. Until the interactions between OpenACC and OpenMP 'target' get defined properly, I suggest we make this a compile-time error. I'm testing a patch. (Not sure if a variant of that will be worth backporting to release branches, too?)