https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70149
Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gerhard.steinmetz.fortran@t | |-online.de --- Comment #5 from Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> --- This variant gives the same backtrace as in pr68569 comment 2 : $ cat z2.f90 program p character(16), target :: char_data = 'forty two' character(:), pointer :: x => char_data print *, len(x), x end $ gfortran-7-20161204 z2.f90 z2.f90:1:0: program p internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1705 0x75b6f5 gfc_get_symbol_decl(gfc_symbol*) ../../gcc/fortran/trans-decl.c:1705 0x75e5b7 generate_local_decl ../../gcc/fortran/trans-decl.c:5327 0x71825b do_traverse_symtree ../../gcc/fortran/symbol.c:3994 0x75f412 generate_local_vars ../../gcc/fortran/trans-decl.c:5527 0x75f412 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6206 0x6e73d0 translate_all_program_units ../../gcc/fortran/parse.c:6038 0x6e73d0 gfc_parse_file() ../../gcc/fortran/parse.c:6238 0x72b182 gfc_be_parse_file ../../gcc/fortran/f95-lang.c:202