public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/105256] ICE compiling firefox-99
Date: Wed, 13 Apr 2022 19:17:38 +0000	[thread overview]
Message-ID: <bug-105256-4-ghCeyHFKIO@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-105256-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #13 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This reduced code crashes with GCC 8 up to trunk:

struct S {
  struct Prefs {
    struct {
      int i = i;
    } p;
    void Load();
  };
};

void S::Prefs::Load() {
  *this = {};
};

$ xg++ -c ff.C
ff.C: In member function ‘void S::Prefs::Load()’:
ff.C:11:12: internal compiler error: in gimplify_expr, at gimplify.cc:15905
   11 |   *this = {};
      |            ^
0x1370253 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/mpolacek/src/gcc/gcc/gimplify.cc:15905
0x13360f8 gimplify_compound_lval
        /home/mpolacek/src/gcc/gcc/gimplify.cc:3272
0x136cfa4 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/mpolacek/src/gcc/gcc/gimplify.cc:15050
0x133bc99 gimplify_init_ctor_preeval
        /home/mpolacek/src/gcc/gcc/gimplify.cc:4781
0x133bc48 gimplify_init_ctor_preeval
        /home/mpolacek/src/gcc/gcc/gimplify.cc:4767
0x133bc48 gimplify_init_ctor_preeval
        /home/mpolacek/src/gcc/gcc/gimplify.cc:4767
0x133d603 gimplify_init_constructor
        /home/mpolacek/src/gcc/gcc/gimplify.cc:5357
0x133e452 gimplify_modify_expr_rhs
        /home/mpolacek/src/gcc/gcc/gimplify.cc:5674
0x133f66f gimplify_modify_expr
        /home/mpolacek/src/gcc/gcc/gimplify.cc:6040
0x136d142 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/mpolacek/src/gcc/gcc/gimplify.cc:15098
0x1343c11 gimplify_stmt(tree_node**, gimple**)
        /home/mpolacek/src/gcc/gcc/gimplify.cc:7151
0x1343164 gimplify_cleanup_point_expr
        /home/mpolacek/src/gcc/gcc/gimplify.cc:6892
0x136ebdb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/mpolacek/src/gcc/gcc/gimplify.cc:15491
0x1343c11 gimplify_stmt(tree_node**, gimple**)
        /home/mpolacek/src/gcc/gcc/gimplify.cc:7151
0x1371bfb gimplify_body(tree_node*, bool)
        /home/mpolacek/src/gcc/gcc/gimplify.cc:16355
0x13722f8 gimplify_function_tree(tree_node*)
        /home/mpolacek/src/gcc/gcc/gimplify.cc:16509
0x10c08c9 cgraph_node::analyze()
        /home/mpolacek/src/gcc/gcc/cgraphunit.cc:676
0x10c2955 analyze_functions
        /home/mpolacek/src/gcc/gcc/cgraphunit.cc:1241
0x10c5b05 symbol_table::finalize_compilation_unit()
        /home/mpolacek/src/gcc/gcc/cgraphunit.cc:2501

  parent reply	other threads:[~2022-04-13 19:17 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-13  8:01 [Bug c++/105256] New: " chris2553 at googlemail dot com
2022-04-13  8:07 ` [Bug c++/105256] " rguenth at gcc dot gnu.org
2022-04-13 15:22 ` chris2553 at googlemail dot com
2022-04-13 15:57 ` chris2553 at googlemail dot com
2022-04-13 15:58 ` chris2553 at googlemail dot com
2022-04-13 15:59 ` chris2553 at googlemail dot com
2022-04-13 18:05 ` chris2553 at googlemail dot com
2022-04-13 18:17 ` mpolacek at gcc dot gnu.org
2022-04-13 18:41 ` mpolacek at gcc dot gnu.org
2022-04-13 18:47 ` pinskia at gcc dot gnu.org
2022-04-13 18:55 ` mpolacek at gcc dot gnu.org
2022-04-13 19:13 ` marxin at gcc dot gnu.org
2022-04-13 19:16 ` mpolacek at gcc dot gnu.org
2022-04-13 19:17 ` mpolacek at gcc dot gnu.org [this message]
2022-04-13 19:21 ` [Bug c++/105256] [9/10/11/12 Regression] " mpolacek at gcc dot gnu.org
2022-04-13 19:25 ` mpolacek at gcc dot gnu.org
2022-04-14 10:14 ` jakub at gcc dot gnu.org
2022-04-14 12:14 ` chris2553 at googlemail dot com
2022-04-14 13:10 ` jakub at gcc dot gnu.org
2022-04-14 13:24 ` jakub at gcc dot gnu.org
2022-04-14 13:27 ` mpolacek at gcc dot gnu.org
2022-04-14 13:33 ` jakub at gcc dot gnu.org
2022-04-14 13:52 ` jakub at gcc dot gnu.org
2022-04-14 14:14 ` jakub at gcc dot gnu.org
2022-04-14 15:47 ` chris2553 at googlemail dot com
2022-04-14 20:04 ` chris2553 at googlemail dot com
2022-04-19  7:16 ` rguenth at gcc dot gnu.org
2022-04-19  8:29 ` marxin at gcc dot gnu.org
2022-04-19  8:38 ` rguenth at gcc dot gnu.org
2022-04-19 16:28 ` cvs-commit at gcc dot gnu.org
2022-04-19 16:37 ` [Bug c++/105256] [9/10/11 " jakub at gcc dot gnu.org
2022-04-20  6:46 ` cvs-commit at gcc dot gnu.org
2022-04-20  6:46 ` [Bug c++/105256] [9/10 " jakub at gcc dot gnu.org
2022-04-20 12:02 ` chris2553 at googlemail dot com
2022-05-09 16:22 ` cvs-commit at gcc dot gnu.org
2022-05-10  8:26 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:26 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:36 ` jakub 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-105256-4-ghCeyHFKIO@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).