public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug analyzer/114778] ICE: in get_region_for_local, at analyzer/region.cc:1366
Date: Mon, 22 Apr 2024 16:49:46 +0000	[thread overview]
Message-ID: <bug-114778-4-fWGhGYWI7G@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114778-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this.

It's failing this assertion in frame_region::get_region_for_local :

1421            case VAR_DECL:
1422              gcc_assert (!is_global_var (expr));
1423              /* Fall through.  */
1424            case PARM_DECL:
1425            case RESULT_DECL:
1426              gcc_assert (DECL_CONTEXT (expr) == m_fun.decl);
1427              break;

(gdb) pt expr
 <var_decl 0x7fffea8212d0 D.2795
    type <integer_type 0x7fffea664000 sizetype public unsigned DI
        size <integer_cst 0x7fffea644f48 constant 64>
        unit-size <integer_cst 0x7fffea644f60 constant 8>
        align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7fffea664000 precision:64 min <integer_cst 0x7fffea644f78 0> max <integer_cst
0x7fffea6455e0 18446744073709551615>>
    used unsigned ignored DI ../../src/pr114778.c:6:5 size <integer_cst
0x7fffea644f48 64> unit-size <integer_cst 0x7fffea644f60 8>
    align:64 warn_if_not_align:0 context <function_decl 0x7fffea7f5a00 f>>

(gdb) p m_fun.decl
$1 = <function_decl 0x7fffea7f5600 a>

Looks like another ICE due to GCC's nested functions extension for C, which the
analyzer doesn't yet support.

  reply	other threads:[~2024-04-22 16:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19  1:55 [Bug analyzer/114778] New: ICE: internal compiler error: " iamanonymous.cs at gmail dot com
2024-04-22 16:49 ` dmalcolm at gcc dot gnu.org [this message]
2024-04-22 16:50 ` [Bug analyzer/114778] ICE: " dmalcolm at gcc dot gnu.org
2024-04-23  2:10 ` iamanonymous.cs at gmail dot com

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-114778-4-fWGhGYWI7G@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).