public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104300] New: [12 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.c:2977 since r12-6326-ge948436eab818c52
@ 2022-01-31  9:59 marxin at gcc dot gnu.org
  2022-01-31  9:59 ` [Bug c++/104300] " marxin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-01-31  9:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104300
           Summary: [12 Regression] ICE in gimplify_var_or_parm_decl, at
                    gimplify.c:2977 since r12-6326-ge948436eab818c52
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jason at redhat dot com
  Target Milestone: ---

Seen for a couple of packages (e.g. bstone):

$ cat bstone.ii
class Rgba8;
template <int _Nm> struct __array_traits { typedef Rgba8 _Type[_Nm]; };
template <int _Nm> struct array {
  typename __array_traits<_Nm>::_Type _M_elems;
};
struct Rgba8 {
  char r_;
  Rgba8();
};
using Rgba8Palette = array<6>;
Rgba8Palette hw_default_palette_;
void hw_initialize_palette() { hw_default_palette_ = {}; }

$ g++ bstone.ii -c
bstone.ii: In function 'void hw_initialize_palette()':
bstone.ii:12:55: internal compiler error: in gimplify_var_or_parm_decl, at
gimplify.cc:2985
   12 | void hw_initialize_palette() { hw_default_palette_ = {}; }
      |                                                       ^
0x13c383d gimplify_var_or_parm_decl
        /home/marxin/Programming/gcc/gcc/gimplify.cc:2985
0x1402263 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/marxin/Programming/gcc/gcc/gimplify.cc:15424
0x13cfbf6 gimplify_addr_expr
        /home/marxin/Programming/gcc/gcc/gimplify.cc:6375
0x14004bf gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/marxin/Programming/gcc/gcc/gimplify.cc:15010
0x13cde8e gimplify_modify_expr
        /home/marxin/Programming/gcc/gcc/gimplify.cc:5967
0x140010f gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/marxin/Programming/gcc/gcc/gimplify.cc:14963
0x13d28e1 gimplify_stmt(tree_node**, gimple**)
        /home/marxin/Programming/gcc/gcc/gimplify.cc:7035
0x13c0485 gimplify_statement_list
        /home/marxin/Programming/gcc/gcc/gimplify.cc:2022
0x1402180 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/marxin/Programming/gcc/gcc/gimplify.cc:15408
0x1400a2b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/marxin/Programming/gcc/gcc/gimplify.cc:15084
0x13ca055 gimplify_init_ctor_preeval
        /home/marxin/Programming/gcc/gcc/gimplify.cc:4674
0x13ca002 gimplify_init_ctor_preeval
        /home/marxin/Programming/gcc/gcc/gimplify.cc:4660
0x13cbae1 gimplify_init_constructor
        /home/marxin/Programming/gcc/gcc/gimplify.cc:5239
0x13cca0b gimplify_modify_expr_rhs
        /home/marxin/Programming/gcc/gcc/gimplify.cc:5556
0x13cdd5b gimplify_modify_expr
        /home/marxin/Programming/gcc/gcc/gimplify.cc:5922
0x140010f gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/marxin/Programming/gcc/gcc/gimplify.cc:14963
0x13d28e1 gimplify_stmt(tree_node**, gimple**)
        /home/marxin/Programming/gcc/gcc/gimplify.cc:7035
0x13d1d47 gimplify_cleanup_point_expr
        /home/marxin/Programming/gcc/gcc/gimplify.cc:6774
0x1401d81 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/marxin/Programming/gcc/gcc/gimplify.cc:15356
0x13d28e1 gimplify_stmt(tree_node**, gimple**)
        /home/marxin/Programming/gcc/gcc/gimplify.cc:7035
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-07 12:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-31  9:59 [Bug c++/104300] New: [12 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.c:2977 since r12-6326-ge948436eab818c52 marxin at gcc dot gnu.org
2022-01-31  9:59 ` [Bug c++/104300] " marxin at gcc dot gnu.org
2022-02-01  0:05 ` pinskia at gcc dot gnu.org
2022-02-02 23:35 ` jason at gcc dot gnu.org
2022-02-05  5:57 ` cvs-commit at gcc dot gnu.org
2022-02-07 12:52 ` jakub at gcc dot gnu.org

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).