public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111911] New: GCC: 14: internal compiler error: internal compiler error: in gimplify_expr, at gimplify.cc:17510
@ 2023-10-22  1:42 141242068 at smail dot nju.edu.cn
  2023-10-22  1:54 ` [Bug c/111911] [11/12/13/14 Regression] ICE with integer overflow converting to _Bool pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: 141242068 at smail dot nju.edu.cn @ 2023-10-22  1:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111911
           Summary: GCC: 14: internal compiler error: internal compiler
                    error: in gimplify_expr, at gimplify.cc:17510
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 141242068 at smail dot nju.edu.cn
  Target Milestone: ---

When compile this program, GCC crashes:
```
int main(void) {
  if ((((!((_Bool)(__INT_MAX__ + 1))) /
          (!((_Bool)(__INT_MAX__ + 1))))))
          ;
  return 1;
}
```

Complier Explorer: https://gcc.godbolt.org/z/W59roeYKP

The full stack dump:
```
<source>: In function 'main':
<source>:2:32: warning: integer overflow in expression of type 'int' results in
'-2147483648' [-Woverflow]
    2 |   if ((((!((_Bool)(__INT_MAX__ + 1))) /
      |                                ^
<source>:3:34: warning: integer overflow in expression of type 'int' results in
'-2147483648' [-Woverflow]
    3 |           (!((_Bool)(__INT_MAX__ + 1))))))
      |                                  ^
cc1: warning: division by zero [-Wdiv-by-zero]
<source>:2:10: internal compiler error: in gimplify_expr, at gimplify.cc:17510
    2 |   if ((((!((_Bool)(__INT_MAX__ + 1))) /
      |          ^
0x231f49e internal_error(char const*, ...)
        ???:0
0xa00958 fancy_abort(char const*, int, char const*)
        ???:0
0xdbb856 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdbb3dc gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdbb856 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdbb3dc gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdbb3dc gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdbbf48 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdbec8a gimplify_stmt(tree_node**, gimple**)
        ???:0
0xdbcc33 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdbec8a gimplify_stmt(tree_node**, gimple**)
        ???:0
0xdbbcdf gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdbec8a gimplify_stmt(tree_node**, gimple**)
        ???:0
0xdbcc33 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdbec8a gimplify_stmt(tree_node**, gimple**)
        ???:0
0xdc0cd3 gimplify_body(tree_node*, bool)
        ???:0
0xdc112f gimplify_function_tree(tree_node*)
        ???:0
0xbea6e7 cgraph_node::analyze()
        ???:0
0xbee231 symbol_table::finalize_compilation_unit()
        ???:0
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] 11+ messages in thread

end of thread, other threads:[~2024-02-08  1:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-22  1:42 [Bug c/111911] New: GCC: 14: internal compiler error: internal compiler error: in gimplify_expr, at gimplify.cc:17510 141242068 at smail dot nju.edu.cn
2023-10-22  1:54 ` [Bug c/111911] [11/12/13/14 Regression] ICE with integer overflow converting to _Bool pinskia at gcc dot gnu.org
2023-10-22  1:54 ` pinskia at gcc dot gnu.org
2023-10-22  2:21 ` pinskia at gcc dot gnu.org
2023-10-22  2:25 ` pinskia at gcc dot gnu.org
2023-10-22  2:28 ` pinskia at gcc dot gnu.org
2023-11-22 14:38 ` jakub at gcc dot gnu.org
2024-01-30 22:16 ` jsm28 at gcc dot gnu.org
2024-01-31  1:25 ` cvs-commit at gcc dot gnu.org
2024-01-31  1:29 ` [Bug c/111911] [11/12/13 " jsm28 at gcc dot gnu.org
2024-02-08  1:35 ` cvs-commit 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).