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

            Bug ID: 103898
           Summary: [12 Regression] ICE: gimplification failed
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antony at cosmologist dot info
  Target Milestone: ---

For full log see
https://app.travis-ci.com/github/cmbant/CosmoMC/jobs/552809686.
The relevant stack trace is

[ 94/125] Processing src/bflike/long_intrinsic_smw.f90
gimplification failed:
MAX_EXPR <_21, 0> <max_expr 0x7f1b5ff58f00
    type <integer_type 0x7f1b60196738 integer(kind=8) public DI
        size <integer_cst 0x7f1b6017fc00 constant 64>
        unit-size <integer_cst 0x7f1b6017fc18 constant 8>
        align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f1b60196738 precision:64 min <integer_cst 0x7f1b6017fe88
-9223372036854775808> max <integer_cst 0x7f1b6017fea0 9223372036854775807>
        pointer_to_this <pointer_type 0x7f1b601cb738>>

    arg:0 <ssa_name 0x7f1b5ff87d80 type <integer_type 0x7f1b60196738
integer(kind=8)>

        def_stmt _21 = _20 + 1;
        version:21>
    arg:1 <integer_cst 0x7f1b6019d2d0 type <integer_type 0x7f1b60196738
integer(kind=8)> constant 0>
    /cosmomc/code/plc_3.0/plc-3.01/src/bflike/long_intrinsic_smw.f90:155:36
start: /cosmomc/code/plc_3.0/plc-3.01/src/bflike/long_intrinsic_smw.f90:155:36
finish:
/cosmomc/code/plc_3.0/plc-3.01/src/bflike/long_intrinsic_smw.f90:155:36>
/cosmomc/code/plc_3.0/plc-3.01/src/bflike/long_intrinsic_smw.f90:155:36:
  155 |        mysize = size(array, dim=dim)
      |                                    ^
internal compiler error: gimplification failed
0x1daeb37 internal_error(char const*, ...)
        ???:0
0xc4a9b6 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xc4713f gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xc4aa16 gimplify_stmt(tree_node**, gimple**)
        ???:0
0xc474e2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xc4aa16 gimplify_stmt(tree_node**, gimple**)
        ???:0
0xc4848b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xc4aa16 gimplify_stmt(tree_node**, gimple**)
        ???:0
0xc479e2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xc4aa16 gimplify_stmt(tree_node**, gimple**)
        ???:0
0xc474e2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xc4aa16 gimplify_stmt(tree_node**, gimple**)
        ???:0
0xc4848b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xc4aa16 gimplify_stmt(tree_node**, gimple**)
        ???:0
0xc479e2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xc58d19 gimplify_body(tree_node*, bool)
        ???:0
0xc5915d gimplify_function_tree(tree_node*)
        ???:0
0xa94487 cgraph_node::analyze()
        ???:0
0xa97c6d symbol_table::finalize_compilation_unit()
        ???:0
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.

The relevant source code is in
https://pla.esac.esa.int/pla/aio/product-action?COSMOLOGY.FILE_ID=COM_Likelihood_Code-v3.0_R3.01.tar.gz

This broke in trunk relatively recently, though at least a month ago.

I don't have a reduced test case (this is not my code).

Reply via email to