public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109730] New: ICE in c_common_parse_file()
@ 2023-05-04  9:20 tocic at protonmail dot ch
  2023-05-04 10:22 ` [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check sjames at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tocic at protonmail dot ch @ 2023-05-04  9:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109730
           Summary: ICE in c_common_parse_file()
           Product: gcc
           Version: 13.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tocic at protonmail dot ch
  Target Milestone: ---

Created attachment 54991
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54991&action=edit
result of -freport-bug

I'm trying to compile https://github.com/cschreib/snitch. `gcc 12.2.1` works
fine, `gcc 13.1.1` produces an ICE on the line

```
std::array<ElemType, MaxLength> data_buffer = {};
```

Originally posted here https://bugs.archlinux.org/task/78385.

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

* [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check
  2023-05-04  9:20 [Bug c++/109730] New: ICE in c_common_parse_file() tocic at protonmail dot ch
@ 2023-05-04 10:22 ` sjames at gcc dot gnu.org
  2023-05-04 11:39 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-05-04 10:22 UTC (permalink / raw)
  To: gcc-bugs

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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE in                      |[12/13/14 regression] ICE
                   |c_common_parse_file()       |in contains_struct_check
                 CC|                            |sjames at gcc dot gnu.org

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
I can reproduce this with 12.2.1 20230502, 13.1.1 20230429, and 14.0.0
20230423. 11.3.1 20230427 is fine.

```
$ g++ -std=c++20 -S -c tests_testing.cpp.ii
In file included from ../tests/testing.hpp:4,
                 from ../tests/testing.cpp:2:
./snitch/snitch_all.hpp:936:37: internal compiler error: Segmentation fault
0x1359311 crash_signal
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/toplev.cc:314
0x2115167 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/tree.h:3653
0x21c3976 begin_maybe_infinite_loop
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/semantics.cc:693
0x21c343b finish_for_cond(tree_node*, tree_node*, bool, unsigned short)
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/semantics.cc:1318
0x22f5c2f build_vec_init(tree_node*, tree_node*, tree_node*, bool, int, int,
vec<tree_node*, va_gc, vl_embed>**)
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/init.cc:4854
0x22f5783 expand_vec_init_expr(tree_node*, tree_node*, int, vec<tree_node*,
va_gc, vl_embed>**)
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/tree.cc:863
0x112564b cxx_eval_vec_init
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/constexpr.cc:5324
0x7c1c51 cxx_eval_constant_expression
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/constexpr.cc:7610
0x1bf7aae cxx_eval_outermost_constant_expr
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/constexpr.cc:8318
0x1bf68dd maybe_constant_init_1
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/constexpr.cc:8810
0x1d614d6 maybe_constant_init(tree_node*, tree_node*, bool)
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/constexpr.cc:8828
0x1d614d6 fold_non_dependent_init(tree_node*, int, bool, tree_node*)
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/constexpr.cc:8769
0x1d614d6 massage_init_elt
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/typeck2.cc:1541
0x1be9aea process_init_constructor_record
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/typeck2.cc:1813
0x1be9aea process_init_constructor
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/typeck2.cc:2067
0x1be9aea digest_init_r
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/typeck2.cc:1332
0x22ccf3c digest_init_flags(tree_node*, tree_node*, int, int)
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/typeck2.cc:1378
0x22ccf3c digest_nsdmi_init(tree_node*, tree_node*, int)
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/typeck2.cc:1464
0x21c4350 maybe_instantiate_nsdmi_init(tree_node*, int)
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/init.cc:635
0x21c3e28 get_nsdmi(tree_node*, bool, int)
       
/usr/src/debug/sys-devel/gcc-13.1.1_p20230429-r1/gcc-13-20230429/gcc/cp/init.cc:669
```

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

* [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check
  2023-05-04  9:20 [Bug c++/109730] New: ICE in c_common_parse_file() tocic at protonmail dot ch
  2023-05-04 10:22 ` [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check sjames at gcc dot gnu.org
@ 2023-05-04 11:39 ` rguenth at gcc dot gnu.org
  2023-05-04 11:52 ` sjames at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-04 11:39 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.3

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

* [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check
  2023-05-04  9:20 [Bug c++/109730] New: ICE in c_common_parse_file() tocic at protonmail dot ch
  2023-05-04 10:22 ` [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check sjames at gcc dot gnu.org
  2023-05-04 11:39 ` rguenth at gcc dot gnu.org
@ 2023-05-04 11:52 ` sjames at gcc dot gnu.org
  2023-05-04 12:18 ` [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check since r12-9441-g94569d91bd4c60 sjames at gcc dot gnu.org
  2023-05-04 20:04 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-05-04 11:52 UTC (permalink / raw)
  To: gcc-bugs

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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-05-04
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jason at redhat dot com
     Ever confirmed|0                           |1

--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
Bisect says r12-9441-g94569d91bd4c60 (went between 12.2 and releases/gcc-12).

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

* [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check since r12-9441-g94569d91bd4c60
  2023-05-04  9:20 [Bug c++/109730] New: ICE in c_common_parse_file() tocic at protonmail dot ch
                   ` (2 preceding siblings ...)
  2023-05-04 11:52 ` sjames at gcc dot gnu.org
@ 2023-05-04 12:18 ` sjames at gcc dot gnu.org
  2023-05-04 20:04 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-05-04 12:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Sam James <sjames at gcc dot gnu.org> ---
Created attachment 54993
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54993&action=edit
reduced.ii

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

* [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check since r12-9441-g94569d91bd4c60
  2023-05-04  9:20 [Bug c++/109730] New: ICE in c_common_parse_file() tocic at protonmail dot ch
                   ` (3 preceding siblings ...)
  2023-05-04 12:18 ` [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check since r12-9441-g94569d91bd4c60 sjames at gcc dot gnu.org
@ 2023-05-04 20:04 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-04 20:04 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 109666.

*** This bug has been marked as a duplicate of bug 109666 ***

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

end of thread, other threads:[~2023-05-04 20:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-04  9:20 [Bug c++/109730] New: ICE in c_common_parse_file() tocic at protonmail dot ch
2023-05-04 10:22 ` [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check sjames at gcc dot gnu.org
2023-05-04 11:39 ` rguenth at gcc dot gnu.org
2023-05-04 11:52 ` sjames at gcc dot gnu.org
2023-05-04 12:18 ` [Bug c++/109730] [12/13/14 regression] ICE in contains_struct_check since r12-9441-g94569d91bd4c60 sjames at gcc dot gnu.org
2023-05-04 20:04 ` 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).