https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82904
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to anlauf from comment #6) > Do I understand Richard's comment correctly that we should get for > > character(:), allocatable, save :: x > > in the dump sth. like: > > static integer(kind=4) _F.x = 0; > static character(kind=1)[1:_F.x] * x = 0B; > > i.e. the length should be initialized to 0? No, the issue is the [1:_F.x], the frontend needs to place an explicit DECL_EXPR in the IL (where the static initialization / allocation happens) which will be the place the middle-end "evaluates" the size expression.