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

--- Comment #3 from Harald Anlauf <anlauf at gcc dot gnu.org> ---
Side note: replacing the forall by do concurrent seems to work, although the
pointer assignment stays the same.

Somehow the resolution of the pointer assignment in the forall does not get
the types right.  We die here:

Breakpoint 2, gfc_typenode_for_spec (spec=0x5350168, codim=0)
    at ../../gcc-trunk/gcc/fortran/trans-types.cc:1336
1336      switch (spec->type)
(gdb) l
1331    tree
1332    gfc_typenode_for_spec (gfc_typespec * spec, int codim)
1333    {
1334      tree basetype;
1335
1336      switch (spec->type)
1337        {
1338        case BT_UNKNOWN:
1339          gcc_unreachable ();
(gdb) p *spec
$30 = {type = BT_UNKNOWN, kind = 0, u = {derived = 0x0, cl = 0x0, pad = 0}, 
  interface = 0x0, is_c_interop = 0, is_iso_c = 0, f90_type = BT_UNKNOWN, 
  deferred = false, interop_kind = 0x0}

Reply via email to