public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104647] New: [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705
@ 2022-02-22 19:32 gscfq@t-online.de
  2022-02-22 21:48 ` [Bug c++/104647] " mpolacek at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2022-02-22 19:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104647
           Summary: [9/10/11/12 Regression] ICE in
                    get_or_insert_ctor_field, at cp/constexpr.cc:3705
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Seems to have started between 20181104 and 20181111 :
(gcc configured with --enable-checking=yes)


$ cat z1.cc
struct A { int i; int f(); };
typedef int A::*MemPtr;
typedef int (A::*MemFuncPtr)();
struct B { MemPtr a[3]; MemFuncPtr b[3]; };
template <B> struct X {};
template <typename T>
typedef X<B{{}, { MemFuncPtr{ nullptr }}}> XB;


$ cat z2.cc
struct A { int i; int f(); };
typedef int A::*MemPtr;
typedef int (A::*MemFuncPtr)();
struct B { MemPtr a[3]; MemFuncPtr b[3]; };
template <B> struct X {};
template <typename T>
typedef X<B{{}, { MemFuncPtr{ 0 }}}> XB;


$ cat za1.cc
struct A typedef *MemPtr;
typedef (A::*MemFuncPtr) ();
struct B { int *b; MemFuncPtr c; };
template <B<B{{}, MemFuncPtr {nullptr}};


$ g++-12-20220220 -c z1.cc -std=c++20   # or -std=c++2a
z1.cc:7:41: internal compiler error: Segmentation fault
    7 | typedef X<B{{}, { MemFuncPtr{ nullptr }}}> XB;
      |                                         ^
0x10ca74f crash_signal
        ../../gcc/toplev.cc:322
0x76d8b2 get_or_insert_ctor_field
        ../../gcc/cp/constexpr.cc:3705
0x784b33 cxx_eval_bare_aggregate
        ../../gcc/cp/constexpr.cc:4825
0x774b40 cxx_eval_constant_expression
        ../../gcc/cp/constexpr.cc:7110
0x779ec3 cxx_eval_outermost_constant_expr
        ../../gcc/cp/constexpr.cc:7706
0x77f270 fold_non_dependent_expr_template
        ../../gcc/cp/constexpr.cc:8065
0x77f7a4 fold_non_dependent_init(tree_node*, int, bool, tree_node*)
        ../../gcc/cp/constexpr.cc:8143
0xa59638 massage_init_elt
        ../../gcc/cp/typeck2.cc:1437
0xa599d4 process_init_constructor_array
        ../../gcc/cp/typeck2.cc:1502
0xa57c9a process_init_constructor
        ../../gcc/cp/typeck2.cc:1917
0xa57c9a digest_init_r
        ../../gcc/cp/typeck2.cc:1325
0xa59627 massage_init_elt
        ../../gcc/cp/typeck2.cc:1434
0xa5811b process_init_constructor_record
        ../../gcc/cp/typeck2.cc:1651
0xa5811b process_init_constructor
        ../../gcc/cp/typeck2.cc:1920
0xa5811b digest_init_r
        ../../gcc/cp/typeck2.cc:1325
0x9ddc3e finish_compound_literal(tree_node*, tree_node*, int, fcl_t)
        ../../gcc/cp/semantics.cc:3220
0x8fd33b cp_parser_functional_cast
        ../../gcc/cp/parser.cc:31832
0x91195d cp_parser_postfix_expression
        ../../gcc/cp/parser.cc:7578
0x928a01 cp_parser_unary_expression
        ../../gcc/cp/parser.cc:9035
0x8f63df cp_parser_cast_expression
        ../../gcc/cp/parser.cc:9939

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

* [Bug c++/104647] [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705
  2022-02-22 19:32 [Bug c++/104647] New: [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 gscfq@t-online.de
@ 2022-02-22 21:48 ` mpolacek at gcc dot gnu.org
  2022-02-22 21:49 ` mpolacek at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-02-22 21:48 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-02-22

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.

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

* [Bug c++/104647] [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705
  2022-02-22 19:32 [Bug c++/104647] New: [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 gscfq@t-online.de
  2022-02-22 21:48 ` [Bug c++/104647] " mpolacek at gcc dot gnu.org
@ 2022-02-22 21:49 ` mpolacek at gcc dot gnu.org
  2022-02-23  8:23 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-02-22 21:49 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.5

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

* [Bug c++/104647] [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705
  2022-02-22 19:32 [Bug c++/104647] New: [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 gscfq@t-online.de
  2022-02-22 21:48 ` [Bug c++/104647] " mpolacek at gcc dot gnu.org
  2022-02-22 21:49 ` mpolacek at gcc dot gnu.org
@ 2022-02-23  8:23 ` rguenth at gcc dot gnu.org
  2022-02-24 15:30 ` [Bug c++/104647] [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9 marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-02-23  8:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

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

* [Bug c++/104647] [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9
  2022-02-22 19:32 [Bug c++/104647] New: [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2022-02-23  8:23 ` rguenth at gcc dot gnu.org
@ 2022-02-24 15:30 ` marxin at gcc dot gnu.org
  2022-05-27  9:47 ` [Bug c++/104647] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-02-24 15:30 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[9/10/11/12 Regression] ICE |[9/10/11/12 Regression] ICE
                   |in                          |in
                   |get_or_insert_ctor_field,   |get_or_insert_ctor_field,
                   |at cp/constexpr.cc:3705     |at cp/constexpr.cc:3705
                   |                            |since
                   |                            |r9-3836-g4be5c72cf3ea3ee9
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r9-3836-g4be5c72cf3ea3ee9.

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

* [Bug c++/104647] [10/11/12/13 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9
  2022-02-22 19:32 [Bug c++/104647] New: [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2022-02-24 15:30 ` [Bug c++/104647] [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9 marxin at gcc dot gnu.org
@ 2022-05-27  9:47 ` rguenth at gcc dot gnu.org
  2022-06-28 10:48 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed

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

* [Bug c++/104647] [10/11/12/13 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9
  2022-02-22 19:32 [Bug c++/104647] New: [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2022-05-27  9:47 ` [Bug c++/104647] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:48 ` jakub at gcc dot gnu.org
  2023-02-02 15:43 ` mpolacek at gcc dot gnu.org
  2023-02-02 15:51 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:48 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug c++/104647] [10/11/12/13 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9
  2022-02-22 19:32 [Bug c++/104647] New: [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 gscfq@t-online.de
                   ` (5 preceding siblings ...)
  2022-06-28 10:48 ` jakub at gcc dot gnu.org
@ 2023-02-02 15:43 ` mpolacek at gcc dot gnu.org
  2023-02-02 15:51 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-02-02 15:43 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This seems to have been fixed by r13-4564.

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

* [Bug c++/104647] [10/11/12/13 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9
  2022-02-22 19:32 [Bug c++/104647] New: [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 gscfq@t-online.de
                   ` (6 preceding siblings ...)
  2023-02-02 15:43 ` mpolacek at gcc dot gnu.org
@ 2023-02-02 15:51 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-02-02 15:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |13.0

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

end of thread, other threads:[~2023-02-02 15:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-22 19:32 [Bug c++/104647] New: [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 gscfq@t-online.de
2022-02-22 21:48 ` [Bug c++/104647] " mpolacek at gcc dot gnu.org
2022-02-22 21:49 ` mpolacek at gcc dot gnu.org
2022-02-23  8:23 ` rguenth at gcc dot gnu.org
2022-02-24 15:30 ` [Bug c++/104647] [9/10/11/12 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9 marxin at gcc dot gnu.org
2022-05-27  9:47 ` [Bug c++/104647] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:48 ` jakub at gcc dot gnu.org
2023-02-02 15:43 ` mpolacek at gcc dot gnu.org
2023-02-02 15:51 ` 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).