https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117258
Bug ID: 117258 Summary: tree check fail in gfc_trans_structure_assign, at fortran/trans-expr.cc:9691 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 59408 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59408&action=edit fortran source code For a build of package elk-9.2.12, I get gfortran -fopenmp -fallow-argument-mismatch -I/usr/lib64/gfortran/modules -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c libxcifc.f90 libxcifc.f90:565:12: 565 | end function | 1 internal compiler error: tree check: expected record_type or union_type or qual_union_type, have pointer_type in gfc_trans_structure_assign, at fortran/trans-expr.cc:9691 0x23ab1dd internal_error(char const*, ...) /home/dcb40b/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:517 0x1316e6f tree_check_failed(tree_node const*, char const*, int, char const*, ...)