[Bug fortran/98141] Segmentation fault with empty string sourced allocation

2020-12-05 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98141 Dominique d'Humieres changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug fortran/98141] Segmentation fault with empty string sourced allocation

2020-12-04 Thread davidhneill at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98141 --- Comment #1 from David Neill Asanza --- Here are even shorter examples: $ cat short01.f90 program short01 class(*), allocatable :: a, b, c character(len=0) :: s allocate(a, source=s) !! No problem allocate(character(len=0)::b) all