public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107994] New: [12/13 Regression] ICE in fold_convert_loc, at fold-const.cc:2606
@ 2022-12-06 18:04 gscfq@t-online.de
  2022-12-06 18:08 ` [Bug c/107994] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2022-12-06 18:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107994
           Summary: [12/13 Regression] ICE in fold_convert_loc, at
                    fold-const.cc:2606
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20210822 and 20210905 :


$ cat z1.c
typedef V __attribute__ ((__vector_size__ (32)));
int g;
void foo (V v)
{
  g == v;
  int v;
}


$ cat z2.c
typedef V __attribute__ ((__vector_size__ (32)));
int g;
V foo (V v)
{
  g == v;
  int v;
}


$ gcc-13-20221204 -c z1.c
z1.c:1:9: warning: type defaults to 'int' in declaration of 'V'
[-Wimplicit-int]
    1 | typedef V __attribute__ ((__vector_size__ (32)));
      |         ^
z1.c: In function 'foo':
z1.c:6:7: error: 'v' redeclared as different kind of symbol
    6 |   int v;
      |       ^
z1.c:3:13: note: previous definition of 'v' with type 'V' {aka '__vector(8)
int'}
    3 | void foo (V v)
      |           ~~^
z1.c:5:5: internal compiler error: in fold_convert_loc, at fold-const.cc:2606
    5 |   g == v;
      |   ~~^~~~
0xafb891 fold_convert_loc(unsigned int, tree_node*, tree_node*)
        ../../gcc/fold-const.cc:2606
0xb9ebd7 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.cc:17113
0xb9dca2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.cc:17153
0xba1ff8 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.cc:7219
0xb9d41b gimplify_statement_list
        ../../gcc/gimplify.cc:2019
0xb9d41b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.cc:16805
0xba1ff8 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.cc:7219
0xba2912 gimplify_bind_expr
        ../../gcc/gimplify.cc:1430
0xb9d92a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.cc:16561
0xba1ff8 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.cc:7219
0xba399e gimplify_body(tree_node*, bool)
        ../../gcc/gimplify.cc:17620
0xba3f95 gimplify_function_tree(tree_node*)
        ../../gcc/gimplify.cc:17819
0x9bdab7 cgraph_node::analyze()
        ../../gcc/cgraphunit.cc:676
0x9c0de6 analyze_functions
        ../../gcc/cgraphunit.cc:1240
0x9c1f5d symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.cc:2514

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

end of thread, other threads:[~2023-01-24 14:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-06 18:04 [Bug c/107994] New: [12/13 Regression] ICE in fold_convert_loc, at fold-const.cc:2606 gscfq@t-online.de
2022-12-06 18:08 ` [Bug c/107994] " pinskia at gcc dot gnu.org
2022-12-06 19:09 ` pinskia at gcc dot gnu.org
2022-12-21 12:13 ` cvs-commit at gcc dot gnu.org
2023-01-24 14:27 ` [Bug c/107994] [12 " cvs-commit at gcc dot gnu.org
2023-01-24 14:27 ` rguenth 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).