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

            Bug ID: 111321
           Summary: Segmentation fault with associate construct
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexandre.poux at coria dot fr
  Target Milestone: ---

The following program triggers a segmentation fault when compiling

```fortran
program buggy
    implicit none
    double precision, dimension(1) :: array
    integer :: i

    associate (assoc => array)

        assoc(1) = 1.5
        assoc = assoc*2

    end associate
contains

end program buggy
```

```
#> gfortran bug.f90
f951: internal compiler error: Segmentation fault
0x1a0e9c4 internal_error(char const*, ...)
        ???:0
0x77d375 gfc_expression_rank(gfc_expr*)
        ???:0
0x7392fc gfc_match_expr(gfc_expr**)
        ???:0
0x7397a8 gfc_match(char const*, ...)
        ???:0
0x739f59 gfc_match_assignment()
        ???:0
0x793a70 gfc_parse_file()
        ???:0
```

I'm using the latest version of gfortran from the archlinux repository
core/gcc-fortran 13.2.1-3

Reply via email to