public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
@ 2021-06-14 17:22 gscfq@t-online.de
  2021-06-14 19:41 ` [Bug c++/101071] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gscfq@t-online.de @ 2021-06-14 17:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101071
           Summary: [9/10/11/12 Regression] ICE in
                    gimplify_init_constructor, at gimplify.c:5228
           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: ---

With file gcc/testsuite/g++.dg/cpp0x/variadic-alias2.C and option
-fno-elide-constructors, started between 20200308 and 20200412 :


$ g++-8 -c variadic-alias2.C -O2 -fno-elide-constructors
$
$ g++-12-20210613 -c variadic-alias2.C -O2 -fno-elide-constructors
z1.cc: In function 'void test_min_filter()':
z1.cc:97:3: internal compiler error: in gimplify_init_constructor, at
gimplify.c:5228
   97 |   (void)(computed{} = expected{});// compiles for identical types
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0xaec735 gimplify_init_constructor
        ../../gcc/gimplify.c:5228
0xaed305 gimplify_modify_expr_rhs
        ../../gcc/gimplify.c:5397
0xaf0bdc gimplify_modify_expr
        ../../gcc/gimplify.c:5759
0xae6b13 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14079
0xaefdbc gimplify_target_expr
        ../../gcc/gimplify.c:6782
0xae6ae6 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14476
0xae9448 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6863
0xae7646 gimplify_cleanup_point_expr
        ../../gcc/gimplify.c:6605
0xae7646 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14472
0xae9448 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6863
0xae99a1 gimplify_bind_expr
        ../../gcc/gimplify.c:1424
0xae74ca gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:14280
0xae9448 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6863
0xaea46b gimplify_body(tree_node*, bool)
        ../../gcc/gimplify.c:15324
0xaea8bf gimplify_function_tree(tree_node*)
        ../../gcc/gimplify.c:15478
0x981ec7 cgraph_node::analyze()
        ../../gcc/cgraphunit.c:670
0x9847e7 analyze_functions
        ../../gcc/cgraphunit.c:1234
0x9851ad symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2508

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

* [Bug c++/101071] [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
  2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
@ 2021-06-14 19:41 ` pinskia at gcc dot gnu.org
  2021-06-14 19:41 ` [Bug c++/101071] [10/11/12 " pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-06-14 19:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug c++/101071] [10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
  2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
  2021-06-14 19:41 ` [Bug c++/101071] " pinskia at gcc dot gnu.org
@ 2021-06-14 19:41 ` pinskia at gcc dot gnu.org
  2021-10-02  7:42 ` [Bug c++/101071] [9/10/11/12 " pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-06-14 19:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4
            Summary|[9/10/11/12 Regression] ICE |[10/11/12 Regression] ICE
                   |in                          |in
                   |gimplify_init_constructor,  |gimplify_init_constructor,
                   |at gimplify.c:5228          |at gimplify.c:5228

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

* [Bug c++/101071] [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
  2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
  2021-06-14 19:41 ` [Bug c++/101071] " pinskia at gcc dot gnu.org
  2021-06-14 19:41 ` [Bug c++/101071] [10/11/12 " pinskia at gcc dot gnu.org
@ 2021-10-02  7:42 ` pinskia at gcc dot gnu.org
  2021-11-18 16:06 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-02  7:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |9.5
            Summary|[10/11/12 Regression] ICE   |[9/10/11/12 Regression] ICE
                   |in                          |in
                   |gimplify_init_constructor,  |gimplify_init_constructor,
                   |at gimplify.c:5228          |at gimplify.c:5228
      Known to work|                            |9.3.0
      Known to fail|                            |10.1.0, 9.4.0
   Last reconfirmed|                            |2021-10-02
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, also started to ICE in GCC 9.4.0.
Note the full command line needed to get the ICE is:
-fno-elide-constructors -O2 -std=c++14

using -std=c++11 the code does not ICE.
Also note in GCC 9.3 and before -fno-elide-constructors  -std=c++14 rejects the
code.

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

* [Bug c++/101071] [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
  2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2021-10-02  7:42 ` [Bug c++/101071] [9/10/11/12 " pinskia at gcc dot gnu.org
@ 2021-11-18 16:06 ` jakub at gcc dot gnu.org
  2022-01-17 14:32 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-11-18 16:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started to ICE with r10-7542-gbcafd8748cf9eb83a9e71bf67c4e2a7c5c8f513c aka
PR91966 fix which has been backported to 9.4.

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

* [Bug c++/101071] [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
  2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2021-11-18 16:06 ` jakub at gcc dot gnu.org
@ 2022-01-17 14:32 ` rguenth at gcc dot gnu.org
  2022-05-27  9:45 ` [Bug c++/101071] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-17 14:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug c++/101071] [10/11/12/13 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
  2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2022-01-17 14:32 ` rguenth at gcc dot gnu.org
@ 2022-05-27  9:45 ` rguenth at gcc dot gnu.org
  2022-06-28 10:45 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:45 UTC (permalink / raw)
  To: gcc-bugs

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

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] 11+ messages in thread

* [Bug c++/101071] [10/11/12/13 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
  2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
                   ` (5 preceding siblings ...)
  2022-05-27  9:45 ` [Bug c++/101071] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:45 ` jakub at gcc dot gnu.org
  2023-02-03 18:13 ` mpolacek at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:45 UTC (permalink / raw)
  To: gcc-bugs

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

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] 11+ messages in thread

* [Bug c++/101071] [10/11/12/13 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
  2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
                   ` (6 preceding siblings ...)
  2022-06-28 10:45 ` jakub at gcc dot gnu.org
@ 2023-02-03 18:13 ` mpolacek at gcc dot gnu.org
  2023-02-03 18:50 ` cvs-commit at gcc dot gnu.org
  2023-02-03 18:51 ` mpolacek at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-02-03 18:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed by r13-2978, which came without a test so I'll add a new one.

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

* [Bug c++/101071] [10/11/12/13 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
  2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
                   ` (7 preceding siblings ...)
  2023-02-03 18:13 ` mpolacek at gcc dot gnu.org
@ 2023-02-03 18:50 ` cvs-commit at gcc dot gnu.org
  2023-02-03 18:51 ` mpolacek at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-02-03 18:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:

https://gcc.gnu.org/g:60fca1802a25034f49fa1e3769b3a5656f392e89

commit r13-5692-g60fca1802a25034f49fa1e3769b3a5656f392e89
Author: Marek Polacek <polacek@redhat.com>
Date:   Fri Feb 3 13:45:10 2023 -0500

    c++: Add fixed test [PR101071]

    As a happy accident, this was fixed by the recent r13-2978.

            PR c++/101071

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/variadic-alias8.C: New test.

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

* [Bug c++/101071] [10/11/12/13 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228
  2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
                   ` (8 preceding siblings ...)
  2023-02-03 18:50 ` cvs-commit at gcc dot gnu.org
@ 2023-02-03 18:51 ` mpolacek at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-02-03 18:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.  Doesn't look important to (try to) backport.

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

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

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14 17:22 [Bug c++/101071] New: [9/10/11/12 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228 gscfq@t-online.de
2021-06-14 19:41 ` [Bug c++/101071] " pinskia at gcc dot gnu.org
2021-06-14 19:41 ` [Bug c++/101071] [10/11/12 " pinskia at gcc dot gnu.org
2021-10-02  7:42 ` [Bug c++/101071] [9/10/11/12 " pinskia at gcc dot gnu.org
2021-11-18 16:06 ` jakub at gcc dot gnu.org
2022-01-17 14:32 ` rguenth at gcc dot gnu.org
2022-05-27  9:45 ` [Bug c++/101071] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:45 ` jakub at gcc dot gnu.org
2023-02-03 18:13 ` mpolacek at gcc dot gnu.org
2023-02-03 18:50 ` cvs-commit at gcc dot gnu.org
2023-02-03 18:51 ` mpolacek 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).