public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mscfd at gmx dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/93924] [OOP] segfault with function returning a CLASS(*) pointer Date: Tue, 26 Jan 2021 09:02:02 +0000 [thread overview] Message-ID: <bug-93924-4-qQAWwbzu0I@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-93924-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93924 --- Comment #7 from martin <mscfd at gmx dot net> --- With a recent gfortran version I get (how did you compile that you can run the code): fun_select.f90:37:15: 37 | f => selector() | 1 internal compiler error: Segmentation fault 0xc1f3af crash_signal ../../gcc-repo/gcc/toplev.c:327 0x7842f2 gfc_class_vptr_get(tree_node*) ../../gcc-repo/gcc/fortran/trans-expr.c:205 0x797d7c trans_class_vptr_len_assignment ../../gcc-repo/gcc/fortran/trans-expr.c:9202 0x799afa trans_class_assignment ../../gcc-repo/gcc/fortran/trans-expr.c:10893 0x799afa gfc_trans_assignment_1 ../../gcc-repo/gcc/fortran/trans-expr.c:11326 0x757d77 trans_code ../../gcc-repo/gcc/fortran/trans.c:1919 0x781a99 gfc_generate_function_code(gfc_namespace*) ../../gcc-repo/gcc/fortran/trans-decl.c:6880 0x6fd80e translate_all_program_units ../../gcc-repo/gcc/fortran/parse.c:6351 0x6fd80e gfc_parse_file() ../../gcc-repo/gcc/fortran/parse.c:6620 0x75504f gfc_be_parse_file ../../gcc-repo/gcc/fortran/f95-lang.c:212 Please submit a full bug report,
next prev parent reply other threads:[~2021-01-26 9:02 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-93924-4@http.gcc.gnu.org/bugzilla/> 2020-04-25 12:18 ` [Bug fortran/93924] ICE in gfc_class_len_get at trans_expr.c:231 with function returning a procedure pointer tkoenig at gcc dot gnu.org 2020-04-25 15:59 ` dominiq at lps dot ens.fr 2021-01-26 7:16 ` mscfd at gmx dot net 2021-01-26 7:19 ` mscfd at gmx dot net 2021-01-26 8:21 ` tkoenig at gcc dot gnu.org 2021-01-26 8:23 ` tkoenig at gcc dot gnu.org 2021-01-26 9:02 ` mscfd at gmx dot net [this message] 2021-01-26 9:03 ` [Bug fortran/93924] [OOP] ICE with " tkoenig at gcc dot gnu.org 2021-01-26 12:44 ` pault at gcc dot gnu.org 2021-01-26 15:17 ` pault at gcc dot gnu.org 2021-01-27 11:07 ` pault at gcc dot gnu.org 2021-01-27 11:34 ` cvs-commit at gcc dot gnu.org 2021-05-04 12:31 ` rguenth at gcc dot gnu.org 2021-08-28 19:57 ` cvs-commit at gcc dot gnu.org 2021-09-06 18:43 ` cvs-commit at gcc dot gnu.org 2021-09-06 18:47 ` anlauf 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-93924-4-qQAWwbzu0I@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: linkBe 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).