public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/101329] New: ICE: Invalid expression in gfc_element_size
Date: Mon, 05 Jul 2021 16:43:42 +0000	[thread overview]
Message-ID: <bug-101329-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 101329
           Summary: ICE: Invalid expression in gfc_element_size
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Affects versions down to at least r5 :


$ cat z1.f90
program p
   use iso_c_binding
   print *, c_sizeof(null())
end


$ gfortran-12-20210704 -c z1.f90
f951: internal compiler error: Invalid expression in gfc_element_size.
0x6f7ee9 gfc_report_diagnostic
        ../../gcc/fortran/error.c:782
0x6f9a57 gfc_internal_error(char const*, ...)
        ../../gcc/fortran/error.c:1402
0x799c12 gfc_element_size(gfc_expr*, unsigned long*)
        ../../gcc/fortran/target-memory.c:137
0x799c73 gfc_target_expr_size(gfc_expr*, unsigned long*)
        ../../gcc/fortran/target-memory.c:166
0x78dc4b gfc_simplify_sizeof(gfc_expr*)
        ../../gcc/fortran/simplify.c:7550
0x70db3a do_simplify
        ../../gcc/fortran/intrinsic.c:4657
0x71858a gfc_intrinsic_func_interface(gfc_expr*, int)
        ../../gcc/fortran/intrinsic.c:5050
0x7691b9 resolve_unknown_f
        ../../gcc/fortran/resolve.c:2926
0x7691b9 resolve_function
        ../../gcc/fortran/resolve.c:3270
0x7691b9 gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:7104
0x76f5f4 gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:7071
0x76f5f4 gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:11832
0x76df3f gfc_resolve_blocks(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:10851
0x76e308 gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:11822
0x770c17 resolve_codes
        ../../gcc/fortran/resolve.c:17427
0x770cde gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:17462
0x759224 resolve_all_program_units
        ../../gcc/fortran/parse.c:6403
0x759224 gfc_parse_file()
        ../../gcc/fortran/parse.c:6655
0x7a5c4f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:216

             reply	other threads:[~2021-07-05 16:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-05 16:43 gscfq@t-online.de [this message]
2021-07-05 17:59 ` [Bug fortran/101329] " kargl at gcc dot gnu.org
2021-11-17 21:35 ` anlauf at gcc dot gnu.org
2021-11-18 18:36 ` cvs-commit at gcc dot gnu.org
2021-11-18 19:20 ` anlauf at gcc dot gnu.org
2021-12-27 19:51 ` cvs-commit at gcc dot gnu.org
2021-12-27 20:04 ` cvs-commit 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-101329-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).