public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/95978] New: [10/11 Regression] ICE in gfc_match_data, at fortran/decl.c:731
@ 2020-06-29 17:50 gscfq@t-online.de
  2020-06-29 20:47 ` [Bug fortran/95978] " dominiq at lps dot ens.fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2020-06-29 17:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95978
           Summary: [10/11 Regression] ICE in gfc_match_data, at
                    fortran/decl.c:731
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

This changed between 20200223 and 20200308 :


$ cat z1.f90
program p
   type t
      integer :: a
      type(t), allocatable :: b
      data c /t(1)/
   end type
end


$ cat z2.f90
program p
   type t
      integer :: a
      class(*), allocatable :: b
      data c /t(1)/
   end type
end


$ gfortran-10-20200223 -c z1.f90
z1.f90:5:19:

    5 |       data c /t(1)/
      |                   1
Error: Unexpected DATA statement at (1)


$ gfortran-11-20200628 -c z1.f90
f951: internal compiler error: Segmentation fault
0xbd215f crash_signal
        ../../gcc/toplev.c:328
0x6419e5 gfc_match_data()
        ../../gcc/fortran/decl.c:731
0x6aacb1 match_word
        ../../gcc/fortran/parse.c:65
0x6aed7e decode_statement
        ../../gcc/fortran/parse.c:469
0x6afaea next_free
        ../../gcc/fortran/parse.c:1280
0x6afaea next_statement
        ../../gcc/fortran/parse.c:1512
0x6b1574 parse_derived
        ../../gcc/fortran/parse.c:3343
0x6b1574 parse_spec
        ../../gcc/fortran/parse.c:3884
0x6b3f0c parse_progunit
        ../../gcc/fortran/parse.c:5852
0x6b55e9 gfc_parse_file()
        ../../gcc/fortran/parse.c:6393
0x7016ff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

end of thread, other threads:[~2020-06-30 18:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 17:50 [Bug fortran/95978] New: [10/11 Regression] ICE in gfc_match_data, at fortran/decl.c:731 gscfq@t-online.de
2020-06-29 20:47 ` [Bug fortran/95978] " dominiq at lps dot ens.fr
2020-06-29 21:05 ` anlauf at gcc dot gnu.org
2020-06-29 21:11 ` anlauf at gcc dot gnu.org
2020-06-29 21:21 ` cvs-commit at gcc dot gnu.org
2020-06-29 21:25 ` anlauf at gcc dot gnu.org
2020-06-30 18:46 ` cvs-commit at gcc dot gnu.org
2020-06-30 18:48 ` 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).