https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105054
martin <mscfd at gmx dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mscfd at gmx dot net --- Comment #1 from martin <mscfd at gmx dot net> --- Confirmed with the current development branch for gfortran-12. Moreover, if I comment out the program beginning from line pointer_to_string(2) = '12345678901234567890' to the end, (hence "pointer_to_string(1) = '1234567890'" is the last uncommented line), then I get an ICE: during RTL pass: expand pointer_to_string.f90:20:26: 20 | program chk_string_pointer | ^ internal compiler error: in expand_expr_real_1, at expr.cc:10585 0x68336a expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.cc:10585 0x908991 expand_normal ../../gcc/expr.h:307 0x908991 do_compare_and_jump ../../gcc/dojump.cc:1253 0x90999a do_jump_1 ../../gcc/dojump.cc:253 0x89f6c1 expand_gimple_cond ../../gcc/cfgexpand.cc:2645 0x89f6c1 expand_gimple_basic_block ../../gcc/cfgexpand.cc:5933 0x8a0536 execute ../../gcc/cfgexpand.cc:6806