public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/111321] New: Segmentation fault with associate construct
@ 2023-09-07  7:53 alexandre.poux at coria dot fr
  2023-09-07  7:55 ` [Bug fortran/111321] " alexandre.poux at coria dot fr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: alexandre.poux at coria dot fr @ 2023-09-07  7:53 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-07 16:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-07  7:53 [Bug fortran/111321] New: Segmentation fault with associate construct alexandre.poux at coria dot fr
2023-09-07  7:55 ` [Bug fortran/111321] " alexandre.poux at coria dot fr
2023-09-07 13:04 ` kopper at iag dot uni-stuttgart.de
2023-09-07 16:04 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).