public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95548] New: ice in tree_to_shwi, at tree.c:7321
@ 2020-06-05  6:51 dcb314 at hotmail dot com
  2020-06-05  8:12 ` [Bug c++/95548] " dcb314 at hotmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: dcb314 at hotmail dot com @ 2020-06-05  6:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95548
           Summary: ice in tree_to_shwi, at tree.c:7321
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 48681
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48681&action=edit
gzipped C++ source code

For the attached C++ code, with recent gcc trunk and
compiler flags -flto and -std=c++17, does this:

during IPA pass: odr
assert.cc:52:1: internal compiler error: in tree_to_shwi, at tree.c:7321
0x1238302 tree_to_shwi(tree_node const*)
        ../../trunk.git/gcc/tree.c:7321
0xce5418 ipa_odr_summary_write()
        ../../trunk.git/gcc/ipa-devirt.c:4051
0xe7843a ipa_write_summaries_2(opt_pass*, lto_out_decl_state*)
        ../../trunk.git/gcc/passes.c:2645
0xe76f5a ipa_write_summaries_1(lto_symtab_encoder_d*)
        ../../trunk.git/gcc/passes.c:2676

The bug first seems to appear sometime between 20200603 and
20200604.

I'll have a go at reducing the code.

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

end of thread, other threads:[~2021-04-21  1:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05  6:51 [Bug c++/95548] New: ice in tree_to_shwi, at tree.c:7321 dcb314 at hotmail dot com
2020-06-05  8:12 ` [Bug c++/95548] " dcb314 at hotmail dot com
2020-06-05  9:50 ` [Bug lto/95548] " rguenth at gcc dot gnu.org
2020-06-05 10:46   ` Jan Hubicka
2020-06-05 10:52     ` Jakub Jelinek
2020-06-05 10:46 ` hubicka at ucw dot cz
2020-06-05 10:52 ` jakub at redhat dot com
2020-06-06 20:20 ` cvs-commit at gcc dot gnu.org
2020-06-08  8:11 ` ro at gcc dot gnu.org
2020-06-08  8:31 ` cvs-commit at gcc dot gnu.org
2020-08-13 15:50 ` cvs-commit at gcc dot gnu.org
2020-08-14 16:28 ` cvs-commit at gcc dot gnu.org
2021-04-21  1:08 ` pinskia 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).