[Bug fortran/97977] Fortran deferred length strings incompatible with OMP

2021-02-24 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97977

Tobias Burnus  changed:

   What|Removed |Added

 Depends on||97084

--- Comment #3 from Tobias Burnus  ---
Found the other issue: PR97084 – I did not check whether they are identical or
only closely related, though. Hence, I mark them as depends on. Additionally,
the different subject lines makes it easier to find either.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97084
[Bug 97084] Openmp + Allocatable String Crashes

[Bug fortran/97977] Fortran deferred length strings incompatible with OMP

2021-02-24 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97977

Tobias Burnus  changed:

   What|Removed |Added

 CC||burnus at gcc dot gnu.org

--- Comment #2 from Tobias Burnus  ---
I think we had the issue in some other PR. The problem is that 'string1'
consists of two variables – 'string1' itself + a hidden variable which contains
the string length.

The hidden variable needs to get a data-sharing attribute and it gets the wrong
one. I think the same issue occurs with mapping to a target region. – Not that
trivial to fix, unfortunately :-(

[Bug fortran/97977] Fortran deferred length strings incompatible with OMP

2020-11-25 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97977

anlauf at gcc dot gnu.org changed:

   What|Removed |Added

  Known to fail||11.0
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2020-11-25
 Ever confirmed|0   |1

--- Comment #1 from anlauf at gcc dot gnu.org ---
Confirmed.

The issue occurs when assigning to at least one of string1/string2 twice.

When lifting the thread limit, I've also seen SIGSEGV.