public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jhaiduce at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/97024] New: Overriding finalization on polymorphic types triggers ICE error in generate_finalization_wrapper
Date: Fri, 11 Sep 2020 18:05:51 +0000	[thread overview]
Message-ID: <bug-97024-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 97024
           Summary: Overriding finalization on polymorphic types triggers
                    ICE error in generate_finalization_wrapper
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jhaiduce at gmail dot com
  Target Milestone: ---

Created attachment 49209
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49209&action=edit
Minimum working example

The attached MWE contains declarations of two derived types, one inheriting
from the other. The child type contains a finalization procedure. An
allocatable object of the parent class is created, and assigned to an object of
the child class. This triggers an internal compiler error.

GCC version: 10.5.1
System type: MacOS 10.14.6

Output from gcc -v:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

GCC command line: gfortran -o test.o -c test.f90

GCC compiler output:

f951: internal compiler error: in generate_finalization_wrapper, at
fortran/class.c:2009
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/Homebrew/homebrew-core/issues> for instructions.

Adding -save-temps to the command line produced an empty file named 'test.s'

             reply	other threads:[~2020-09-11 18:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-11 18:05 jhaiduce at gmail dot com [this message]
2020-09-11 18:13 ` [Bug fortran/97024] " jhaiduce at gmail dot com
2020-09-11 18:16 ` jhaiduce at gmail dot com
2020-12-02 20:58 ` dominiq at lps dot ens.fr
2022-01-29  8:36 ` pault at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-97024-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).