[Bug fortran/100196] [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 2 21:04:05 GMT 2022


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

anlauf at gcc dot gnu.org changed:

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

--- Comment #3 from anlauf at gcc dot gnu.org ---
I do not see the ICE for current 12/11/10 but get:

pr100196-z1.f90:3:22:

    3 |   real, parameter :: b = 1 + [a]
      |                      1
Error: Incompatible ranks 0 and 1 in assignment at (1)

and

pr100196-z5.f90:3:25:

    3 |   real, parameter :: b(1) = 1 + [a]
      |                         1
Error: Different shape for array assignment at (1) on dimension 1 (1 and 0)

The issue is still present on 9-branch, though.


More information about the Gcc-bugs mailing list