public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407
@ 2020-11-11 22:51 law at redhat dot com
  2020-11-11 22:52 ` [Bug middle-end/97804] " law at redhat dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: law at redhat dot com @ 2020-11-11 22:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97804
           Summary: ICE in output_constructor_register_field
                    varasm.c:5407
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: law at redhat dot com
  Target Milestone: ---

Trunk as of 5d46ec3db21d8c8926f15a634b2d6570536db5f1 faults compiling the
attached code with -O2 -std=c++17 on x86_64:

./cc1plus -O2 -std=c++17 FreeLookCamera.cpp.ii -quiet -w
/builddir/build/BUILD/dolphin-31524288e3b2450eaefff8202c6d26c4ba3f7333/Source/Core/VideoCommon/FreeLookCamera.cpp:305:1:
internal compiler error: in output_constructor_regular_field, at varasm.c:5407
0x1bd1821 output_constructor_regular_field
        /home/gcc/gcc/gcc/varasm.c:5407
0x1bd2742 output_constructor
        /home/gcc/gcc/gcc/varasm.c:5713
0x1bd0ed0 output_constant
        /home/gcc/gcc/gcc/varasm.c:5222
0x1bd1b62 output_constructor_regular_field
        /home/gcc/gcc/gcc/varasm.c:5446
0x1bd2742 output_constructor
        /home/gcc/gcc/gcc/varasm.c:5713
0x1bd0ed0 output_constant
        /home/gcc/gcc/gcc/varasm.c:5222
0x1bd1b62 output_constructor_regular_field
        /home/gcc/gcc/gcc/varasm.c:5446
0x1bd2742 output_constructor
        /home/gcc/gcc/gcc/varasm.c:5713
0x1bd0ed0 output_constant
        /home/gcc/gcc/gcc/varasm.c:5222
0x1bd1b62 output_constructor_regular_field
        /home/gcc/gcc/gcc/varasm.c:5446
0x1bd2742 output_constructor
        /home/gcc/gcc/gcc/varasm.c:5713
0x1bd0ed0 output_constant
        /home/gcc/gcc/gcc/varasm.c:5222
0x1bd1b62 output_constructor_regular_field
        /home/gcc/gcc/gcc/varasm.c:5446
0x1bd2742 output_constructor
        /home/gcc/gcc/gcc/varasm.c:5713
0x1bd0ed0 output_constant
        /home/gcc/gcc/gcc/varasm.c:5222
0x1bd1b62 output_constructor_regular_field
        /home/gcc/gcc/gcc/varasm.c:5446
0x1bd2742 output_constructor
        /home/gcc/gcc/gcc/varasm.c:5713
0x1bd0ed0 output_constant
        /home/gcc/gcc/gcc/varasm.c:5222
0x1bc6059 assemble_variable_contents
        /home/gcc/gcc/gcc/varasm.c:2128
0x1bc6afc assemble_variable(tree_node*, int, int, int)
        /home/gcc/gcc/gcc/varasm.c:2307


I haven't tried to reproduce or bisect.  However, I would assume is likely a
regression.

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

* [Bug middle-end/97804] ICE in output_constructor_register_field  varasm.c:5407
  2020-11-11 22:51 [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407 law at redhat dot com
@ 2020-11-11 22:52 ` law at redhat dot com
  2020-11-11 23:23 ` [Bug c++/97804] [9/10/11 Regression] ICE in output_constructor_register_field varasm.c:5407 since r9-5710 jakub at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: law at redhat dot com @ 2020-11-11 22:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jeffrey A. Law <law at redhat dot com> ---
Created attachment 49550
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49550&action=edit
Testcase

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

* [Bug c++/97804] [9/10/11 Regression] ICE in output_constructor_register_field  varasm.c:5407 since r9-5710
  2020-11-11 22:51 [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407 law at redhat dot com
  2020-11-11 22:52 ` [Bug middle-end/97804] " law at redhat dot com
@ 2020-11-11 23:23 ` jakub at gcc dot gnu.org
  2020-11-12  7:15 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-11-11 23:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
          Component|middle-end                  |c++
   Target Milestone|---                         |9.4
   Last reconfirmed|                            |2020-11-11
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
            Summary|ICE in                      |[9/10/11 Regression] ICE in
                   |output_constructor_register |output_constructor_register
                   |_field  varasm.c:5407       |_field  varasm.c:5407 since
                   |                            |r9-5710
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r9-5710-g7e574f68fa82e7c5f879fd468291ec8b5ebecc83
Reduced testcase (-std=c++17):
template <typename a> struct b {
  constexpr b() : c() {}
  [[no_unique_address]] a c;
};
template <unsigned long, typename...> struct d;
template <unsigned long e, typename a, typename... f>
struct d<e, a, f...> : d<1, f...>, b<a> {};
template <unsigned long e, typename a> struct d<e, a> : b<a> {};
template <typename... g> class h : d<0, g...> {};
struct i {};
class j {
  using k = int;
  h<k, i> l;
  float m = 0.025f;
} n;

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

* [Bug c++/97804] [9/10/11 Regression] ICE in output_constructor_register_field  varasm.c:5407 since r9-5710
  2020-11-11 22:51 [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407 law at redhat dot com
  2020-11-11 22:52 ` [Bug middle-end/97804] " law at redhat dot com
  2020-11-11 23:23 ` [Bug c++/97804] [9/10/11 Regression] ICE in output_constructor_register_field varasm.c:5407 since r9-5710 jakub at gcc dot gnu.org
@ 2020-11-12  7:15 ` rguenth at gcc dot gnu.org
  2021-02-03 16:04 ` [Bug c++/97804] [9/10 " jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-12  7:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
           Keywords|                            |ice-on-valid-code

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

* [Bug c++/97804] [9/10 Regression] ICE in output_constructor_register_field  varasm.c:5407 since r9-5710
  2020-11-11 22:51 [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407 law at redhat dot com
                   ` (2 preceding siblings ...)
  2020-11-12  7:15 ` rguenth at gcc dot gnu.org
@ 2021-02-03 16:04 ` jakub at gcc dot gnu.org
  2021-02-03 16:18 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-02-03 16:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[9/10/11 Regression] ICE in |[9/10 Regression] ICE in
                   |output_constructor_register |output_constructor_register
                   |_field  varasm.c:5407 since |_field  varasm.c:5407 since
                   |r9-5710                     |r9-5710

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This got fixed with r11-6895-g94ff4c9dd98f39280fba22d1ad0958fb25a5363b
I'll add the testcase into the testsuite.

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

* [Bug c++/97804] [9/10 Regression] ICE in output_constructor_register_field  varasm.c:5407 since r9-5710
  2020-11-11 22:51 [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407 law at redhat dot com
                   ` (3 preceding siblings ...)
  2021-02-03 16:04 ` [Bug c++/97804] [9/10 " jakub at gcc dot gnu.org
@ 2021-02-03 16:18 ` cvs-commit at gcc dot gnu.org
  2021-02-03 16:19 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-03 16:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:c926940f528e689100574a0c600e37548239adab

commit r11-7085-gc926940f528e689100574a0c600e37548239adab
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Feb 3 17:14:40 2021 +0100

    testsuite: Add test for already fixed PR [PR97804]

    This testcase got fixed with the PR98463
    r11-6895-g94ff4c9dd98f39280fba22d1ad0958fb25a5363b fix.

    2021-02-03  Jakub Jelinek  <jakub@redhat.com>

            PR c++/97804
            * g++.dg/cpp2a/no_unique_address11.C: New test.

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

* [Bug c++/97804] [9/10 Regression] ICE in output_constructor_register_field  varasm.c:5407 since r9-5710
  2020-11-11 22:51 [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407 law at redhat dot com
                   ` (4 preceding siblings ...)
  2021-02-03 16:18 ` cvs-commit at gcc dot gnu.org
@ 2021-02-03 16:19 ` cvs-commit at gcc dot gnu.org
  2021-02-03 16:20 ` [Bug c++/97804] [9 " jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-03 16:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:18c03dc19860996b890196d0c809f5bd47010ebc

commit r10-9343-g18c03dc19860996b890196d0c809f5bd47010ebc
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Feb 3 17:14:40 2021 +0100

    testsuite: Add test for already fixed PR [PR97804]

    This testcase got fixed with the PR98463
    r11-6895-g94ff4c9dd98f39280fba22d1ad0958fb25a5363b fix.

    2021-02-03  Jakub Jelinek  <jakub@redhat.com>

            PR c++/97804
            * g++.dg/cpp2a/no_unique_address11.C: New test.

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

* [Bug c++/97804] [9 Regression] ICE in output_constructor_register_field  varasm.c:5407 since r9-5710
  2020-11-11 22:51 [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407 law at redhat dot com
                   ` (5 preceding siblings ...)
  2021-02-03 16:19 ` cvs-commit at gcc dot gnu.org
@ 2021-02-03 16:20 ` jakub at gcc dot gnu.org
  2021-06-01  8:18 ` rguenth at gcc dot gnu.org
  2022-05-27  8:57 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-02-03 16:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[9/10 Regression] ICE in    |[9 Regression] ICE in
                   |output_constructor_register |output_constructor_register
                   |_field  varasm.c:5407 since |_field  varasm.c:5407 since
                   |r9-5710                     |r9-5710

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And on 10 branch with r10-9314-g2127d2c3ee23bbd03f02d88fd82403408696ee4a

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

* [Bug c++/97804] [9 Regression] ICE in output_constructor_register_field  varasm.c:5407 since r9-5710
  2020-11-11 22:51 [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407 law at redhat dot com
                   ` (6 preceding siblings ...)
  2021-02-03 16:20 ` [Bug c++/97804] [9 " jakub at gcc dot gnu.org
@ 2021-06-01  8:18 ` rguenth at gcc dot gnu.org
  2022-05-27  8:57 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01  8:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

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

* [Bug c++/97804] [9 Regression] ICE in output_constructor_register_field  varasm.c:5407 since r9-5710
  2020-11-11 22:51 [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407 law at redhat dot com
                   ` (7 preceding siblings ...)
  2021-06-01  8:18 ` rguenth at gcc dot gnu.org
@ 2022-05-27  8:57 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  8:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|9.5                         |10.3
      Known to work|                            |10.3.0
             Status|NEW                         |RESOLVED

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed for GCC 10.3.

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

end of thread, other threads:[~2022-05-27  8:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11 22:51 [Bug middle-end/97804] New: ICE in output_constructor_register_field varasm.c:5407 law at redhat dot com
2020-11-11 22:52 ` [Bug middle-end/97804] " law at redhat dot com
2020-11-11 23:23 ` [Bug c++/97804] [9/10/11 Regression] ICE in output_constructor_register_field varasm.c:5407 since r9-5710 jakub at gcc dot gnu.org
2020-11-12  7:15 ` rguenth at gcc dot gnu.org
2021-02-03 16:04 ` [Bug c++/97804] [9/10 " jakub at gcc dot gnu.org
2021-02-03 16:18 ` cvs-commit at gcc dot gnu.org
2021-02-03 16:19 ` cvs-commit at gcc dot gnu.org
2021-02-03 16:20 ` [Bug c++/97804] [9 " jakub at gcc dot gnu.org
2021-06-01  8:18 ` rguenth at gcc dot gnu.org
2022-05-27  8:57 ` rguenth 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).