public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103154] New: Crashing gfortran due to bad type parameter specification
@ 2021-11-09 11:16 b.j.braams at cwi dot nl
  2021-11-09 13:20 ` [Bug fortran/103154] Crashing gfortran due to bad type parameter specification since r8-3181-g87f3a5cfb59347cd marxin at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: b.j.braams at cwi dot nl @ 2021-11-09 11:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103154
           Summary: Crashing gfortran due to bad type parameter
                    specification
           Product: gcc
           Version: 10.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: b.j.braams at cwi dot nl
  Target Milestone: ---

The following code is bad, it uses the undeclared variable k. This causes
gfortran to crash with an error message requesting the issue to be reported. I
obey.

Version information:
bash-5.0$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin
--enable-initfini-array --with-isl --enable-offload-targets=nvptx-none
--without-cuda-driver --enable-gnu-indirect-function --enable-cet
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.3.1 20210422 (Red Hat 10.3.1-1) (GCC) 

Command line invocation acting on file Test.f90
bash-5.0$ gfortran Test.f90

System response
internal compiler error: in gfc_typenode_for_spec, at
fortran/trans-types.c:1120
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.

The file Test.f90 that triggers the internal error:
bash-5.0$ cat Test.f90
module Test
  implicit none
  type :: Test_Type (n)
     integer, len :: n
  end type Test_Type
contains
  subroutine Sub ()
    ! Crashing gfortran 9.3.1
    type (Test_Type(n=k)) :: foo
    return
  end subroutine Sub
end module Test

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

* [Bug fortran/103154] Crashing gfortran due to bad type parameter specification since r8-3181-g87f3a5cfb59347cd
  2021-11-09 11:16 [Bug fortran/103154] New: Crashing gfortran due to bad type parameter specification b.j.braams at cwi dot nl
@ 2021-11-09 13:20 ` marxin at gcc dot gnu.org
  2021-11-09 18:12 ` [Bug fortran/103154] [PDT] " anlauf at gcc dot gnu.org
  2021-11-10  7:26 ` b.j.braams at cwi dot nl
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-09 13:20 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-11-09
            Summary|Crashing gfortran due to    |Crashing gfortran due to
                   |bad type parameter          |bad type parameter
                   |specification               |specification since
                   |                            |r8-3181-g87f3a5cfb59347cd
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |pault at gcc dot gnu.org

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r8-3181-g87f3a5cfb59347cd.

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

* [Bug fortran/103154] [PDT] Crashing gfortran due to bad type parameter specification since r8-3181-g87f3a5cfb59347cd
  2021-11-09 11:16 [Bug fortran/103154] New: Crashing gfortran due to bad type parameter specification b.j.braams at cwi dot nl
  2021-11-09 13:20 ` [Bug fortran/103154] Crashing gfortran due to bad type parameter specification since r8-3181-g87f3a5cfb59347cd marxin at gcc dot gnu.org
@ 2021-11-09 18:12 ` anlauf at gcc dot gnu.org
  2021-11-10  7:26 ` b.j.braams at cwi dot nl
  2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-11-09 18:12 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Crashing gfortran due to    |[PDT] Crashing gfortran due
                   |bad type parameter          |to bad type parameter
                   |specification since         |specification since
                   |r8-3181-g87f3a5cfb59347cd   |r8-3181-g87f3a5cfb59347cd
           Priority|P3                          |P4

--- Comment #2 from anlauf at gcc dot gnu.org ---
Very likely a duplicate.

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

* [Bug fortran/103154] [PDT] Crashing gfortran due to bad type parameter specification since r8-3181-g87f3a5cfb59347cd
  2021-11-09 11:16 [Bug fortran/103154] New: Crashing gfortran due to bad type parameter specification b.j.braams at cwi dot nl
  2021-11-09 13:20 ` [Bug fortran/103154] Crashing gfortran due to bad type parameter specification since r8-3181-g87f3a5cfb59347cd marxin at gcc dot gnu.org
  2021-11-09 18:12 ` [Bug fortran/103154] [PDT] " anlauf at gcc dot gnu.org
@ 2021-11-10  7:26 ` b.j.braams at cwi dot nl
  2 siblings, 0 replies; 4+ messages in thread
From: b.j.braams at cwi dot nl @ 2021-11-10  7:26 UTC (permalink / raw)
  To: gcc-bugs

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

Bastiaan Braams <b.j.braams at cwi dot nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Bastiaan Braams <b.j.braams at cwi dot nl> ---
Yes (anlauf), this looks like the same error as was reported by Berke Durak on
2018-01-10, Bug 83762 - ICE on variable declaration with undefined PDT
parameter.

*** This bug has been marked as a duplicate of bug 83762 ***

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

end of thread, other threads:[~2021-11-10  7:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09 11:16 [Bug fortran/103154] New: Crashing gfortran due to bad type parameter specification b.j.braams at cwi dot nl
2021-11-09 13:20 ` [Bug fortran/103154] Crashing gfortran due to bad type parameter specification since r8-3181-g87f3a5cfb59347cd marxin at gcc dot gnu.org
2021-11-09 18:12 ` [Bug fortran/103154] [PDT] " anlauf at gcc dot gnu.org
2021-11-10  7:26 ` b.j.braams at cwi dot nl

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).