https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95375

sandra at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandra at gcc dot gnu.org

--- Comment #2 from sandra at gcc dot gnu.org ---
Current behavior on master is to warn, then ICE:

$ x86_64-linux-gnu-gfortran -c z1.f90
z1.f90:1:0:

    1 | function f() result(n) bind(c)
      | 
......
    6 |       function f() result(n) bind(c)
      |      2
Warning: Type mismatch in function result (INTEGER(4)/CLASS(*)) between (1) and
(2)
z1.f90:4:9:

    4 | program p
      |         ^
Error: mismatching comparison operand types
struct __class__STAR_a
integer(kind=4)
if (D.4230 != 0) goto <D.4231>; else goto <D.4232>;
z1.f90:4:9: internal compiler error: 'verify_gimple' failed
0xfd471d verify_gimple_in_seq(gimple*)
        /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/tree-cfg.c:5229
0xcee7b6 gimplify_body(tree_node*, bool)
        /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/gimplify.c:15913
0xcee97d gimplify_function_tree(tree_node*)
        /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/gimplify.c:15984
0xb1a3b7 cgraph_node::analyze()
        /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/cgraphunit.c:670
0xb1cec7 analyze_functions
        /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/cgraphunit.c:1234
0xb1db5d symbol_table::finalize_compilation_unit()
        /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/cgraphunit.c:2508
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to