https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118710
--- Comment #3 from Ryan Koehler <rtkoehle at mtu dot edu> --- Hey, I lied. I think the patch introduced a new compiler bug. When I pulled and patched gcc (15.0.1 experimental) I ran into the bug that I mentioned in my previous comment. here is the error message: pier_quant.f90:36:29: 36 | end subroutine set_vals_C | 1 internal compiler error: tree check: expected record_type or union_type or qual_union_type, have array_type in gfc_class_data_get, at fortran/trans-expr.cc:248 0x263dd82 internal_error(char const*, ...) ../../gcc/gcc/diagnostic-global-context.cc:517 0x895de3 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.cc:9045 0x759e58 tree_check3(tree_node*, char const*, int, char const*, tree_code, tree_code, tree_code) ../../gcc/gcc/tree.h:3727 0x759e58 gfc_class_data_get(tree_node*) ../../gcc/gcc/fortran/trans-expr.cc:248 0xaeab68 gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*) ../../gcc/gcc/fortran/trans-decl.cc:4943 0xaed508 gfc_generate_function_code(gfc_namespace*) ../../gcc/gcc/fortran/trans-decl.cc:8166 0xab9711 gfc_generate_module_code(gfc_namespace*) ../../gcc/gcc/fortran/trans.cc:2765 0xa55695 translate_all_program_units ../../gcc/gcc/fortran/parse.cc:7362 0xa55695 gfc_parse_file() ../../gcc/gcc/fortran/parse.cc:7692 0xab0a7f gfc_be_parse_file ../../gcc/gcc/fortran/f95-lang.cc:241 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. When I compile the code attached with gfortran version 14.2.1 I do not get any error when compiling this code. Given that its an issue with this patch I figgured I would report it here. I will attach the code in question.