public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/107142] New: [PDT] ICE: Segmentation fault (in next_statement)
@ 2022-10-04  4:22 asolokha at gmx dot com
  2023-06-30  8:51 ` [Bug fortran/107142] " pault at gcc dot gnu.org
  2023-06-30  8:52 ` pault at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: asolokha at gmx dot com @ 2022-10-04  4:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107142
           Summary: [PDT] ICE: Segmentation fault (in next_statement)
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gfortran 13.0.0 20220925 snapshot (g:77bbf69d2981dafc2ef3e59bfbefb645d88bab9d)
ICEs when compiling the following testcase, reduced from
test/Semantics/selecttype01.f90 from the flang 15.0.1 test suite:

module c1162a
  type pdt(kind,len)
    integer, kind :: kind
    integer, len :: len
  end type
 contains
  subroutine foo(x)
    class(pdt(kind=1,len=:)), allocatable :: x
    select type (x)
    type is (pdt(kind=*, len=*))
    end select
  end subroutine
end module

% gfortran-13.0.0 -c lwe7niqj.f90
lwe7niqj.f90:10:14:

   10 |     type is (pdt(kind=*, len=*))
      |              1
Error: Syntax error in TYPE IS specification at (1)
f951: internal compiler error: Segmentation fault
0xf756bf crash_signal
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/toplev.cc:314
0x928173 next_statement
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/fortran/parse.cc:1608
0x92bed0 parse_executable
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/fortran/parse.cc:5968
0x92dc90 parse_progunit
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/fortran/parse.cc:6238
0x92e094 parse_contained
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/fortran/parse.cc:6113
0x92f025 parse_module
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/fortran/parse.cc:6486
0x92f468 gfc_parse_file()
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/fortran/parse.cc:6793
0x98248f gfc_be_parse_file
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220925/work/gcc-13-20220925/gcc/fortran/f95-lang.cc:229

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

* [Bug fortran/107142] [PDT] ICE: Segmentation fault (in next_statement)
  2022-10-04  4:22 [Bug fortran/107142] New: [PDT] ICE: Segmentation fault (in next_statement) asolokha at gmx dot com
@ 2023-06-30  8:51 ` pault at gcc dot gnu.org
  2023-06-30  8:52 ` pault at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-30  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu.org
             Blocks|                            |82173

--- Comment #1 from Paul Thomas <pault at gcc dot gnu.org> ---
Added to PDT meta-bug


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82173
[Bug 82173] [meta-bug] [PDT] Parameterized derived type errors

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

* [Bug fortran/107142] [PDT] ICE: Segmentation fault (in next_statement)
  2022-10-04  4:22 [Bug fortran/107142] New: [PDT] ICE: Segmentation fault (in next_statement) asolokha at gmx dot com
  2023-06-30  8:51 ` [Bug fortran/107142] " pault at gcc dot gnu.org
@ 2023-06-30  8:52 ` pault at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pault at gcc dot gnu.org @ 2023-06-30  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> ---
Added to PDT meta-bug

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

end of thread, other threads:[~2023-06-30  8:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04  4:22 [Bug fortran/107142] New: [PDT] ICE: Segmentation fault (in next_statement) asolokha at gmx dot com
2023-06-30  8:51 ` [Bug fortran/107142] " pault at gcc dot gnu.org
2023-06-30  8:52 ` pault 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).