public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113083] New: [14 Regression][arm] ICE in fold_convert_loc, at fold-const.cc:2602 since r14-5979-g99d114c15523e0
@ 2023-12-19 11:39 mjires at suse dot cz
  2023-12-19 12:34 ` [Bug c++/113083] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: mjires at suse dot cz @ 2023-12-19 11:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113083
           Summary: [14 Regression][arm] ICE in fold_convert_loc, at
                    fold-const.cc:2602 since r14-5979-g99d114c15523e0
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mjires at suse dot cz
                CC: polacek at redhat dot com
  Target Milestone: ---
            Target: arm

Compiling reduced testcase g++.dg/cpp0x/constexpr-98295.C results in ICE since
r14-5979-g99d114c15523e0.

$ cat constexpr-98295.C
struct A { constexpr A(); };

void f() {
  A b;
}

constexpr A::A() {}


$ arm-linux-gnueabi-g++ constexpr-98295.C -Os
constexpr-98295.C: In constructor ‘constexpr A::A()’:
constexpr-98295.C:7:19: internal compiler error: in fold_convert_loc, at
fold-const.cc:2602
    7 | constexpr A::A() {}
      |                   ^
0x1517af9 fold_convert_loc(unsigned int, tree_node*, tree_node*)
        /home/mjires/git/GCC/master/gcc/fold-const.cc:2602
0x1613814 gimplify_modify_expr
        /home/mjires/git/GCC/master/gcc/gimplify.cc:6353
0x16471a1 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:17640
0x1617f67 gimplify_stmt(tree_node**, gimple**)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:7477
0x15ff631 gimplify_and_add(tree_node*, gimple**)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:493
0x16045a5 gimplify_return_expr
        /home/mjires/git/GCC/master/gcc/gimplify.cc:1883
0x16482da gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:17902
0x1617f67 gimplify_stmt(tree_node**, gimple**)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:7477
0x1605a4d gimplify_statement_list
        /home/mjires/git/GCC/master/gcc/gimplify.cc:2222
0x1649002 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:18085
0x1617f67 gimplify_stmt(tree_node**, gimple**)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:7477
0x1603668 gimplify_bind_expr
        /home/mjires/git/GCC/master/gcc/gimplify.cc:1614
0x1647f13 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:17841
0x1617f67 gimplify_stmt(tree_node**, gimple**)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:7477
0x164bdb4 gimplify_body(tree_node*, bool)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:18907
0x164c6a9 gimplify_function_tree(tree_node*)
        /home/mjires/git/GCC/master/gcc/gimplify.cc:19106
0x13a0cb1 cgraph_node::analyze()
        /home/mjires/git/GCC/master/gcc/cgraphunit.cc:685
0x13a2d6d analyze_functions
        /home/mjires/git/GCC/master/gcc/cgraphunit.cc:1248
0x13a62f3 symbol_table::finalize_compilation_unit()
        /home/mjires/git/GCC/master/gcc/cgraphunit.cc:2555
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.


$ arm-linux-gnueabi-g++ -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabi-g++
COLLECT_LTO_WRAPPER=/home/mjires/built/master/libexec/gcc/arm-linux-gnueabi/14.0.0/lto-wrapper
Target: arm-linux-gnueabi
Configured with: /home/mjires/git/GCC/master/configure
--prefix=/home/mjires/built/master --target=arm-linux-gnueabi
--disable-bootstrap --enable-languages=c,c++,fortran --disable-multilib
--disable-libsanitizer --enable-checking
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231219 (experimental) (GCC)

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

end of thread, other threads:[~2024-02-23 17:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-19 11:39 [Bug target/113083] New: [14 Regression][arm] ICE in fold_convert_loc, at fold-const.cc:2602 since r14-5979-g99d114c15523e0 mjires at suse dot cz
2023-12-19 12:34 ` [Bug c++/113083] " rguenth at gcc dot gnu.org
2023-12-19 14:11 ` jakub at gcc dot gnu.org
2023-12-19 15:09 ` mpolacek at gcc dot gnu.org
2023-12-19 22:17 ` mpolacek at gcc dot gnu.org
2023-12-20 17:01 ` mpolacek at gcc dot gnu.org
2023-12-22 19:21 ` mpolacek at gcc dot gnu.org
2024-01-10 15:13 ` jason at gcc dot gnu.org
2024-02-22 21:27 ` jakub at gcc dot gnu.org
2024-02-22 21:33 ` jakub at gcc dot gnu.org
2024-02-23 17:56 ` cvs-commit at gcc dot gnu.org
2024-02-23 17:58 ` 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).