public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61592] New: ICE with large array with initialization
@ 2014-06-24 15:57 jakub at gcc dot gnu.org
  2014-06-24 15:58 ` [Bug c++/61592] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-06-24 15:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61592
           Summary: ICE with large array with initialization
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org

Another testcase similar to PR59659, on which we ICE because of too deep stack
recursion and which should be hopefully fixed with RANGE_EXPRs
struct A { A (); ~A (); int a; };
struct B { A a[200]; };
struct C { B b[200][10]; };
const C c = {};


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

* [Bug c++/61592] ICE with large array with initialization
  2014-06-24 15:57 [Bug c++/61592] New: ICE with large array with initialization jakub at gcc dot gnu.org
@ 2014-06-24 15:58 ` jakub at gcc dot gnu.org
  2021-04-29  7:50 ` sbence92 at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-06-24 15:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-06-24
                 CC|                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reported as https://bugzilla.redhat.com/show_bug.cgi?id=1105791
Jason, do you think you'll have time to look at this for 4.10?


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

* [Bug c++/61592] ICE with large array with initialization
  2014-06-24 15:57 [Bug c++/61592] New: ICE with large array with initialization jakub at gcc dot gnu.org
  2014-06-24 15:58 ` [Bug c++/61592] " jakub at gcc dot gnu.org
@ 2021-04-29  7:50 ` sbence92 at gmail dot com
  2021-05-28  7:29 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sbence92 at gmail dot com @ 2021-04-29  7:50 UTC (permalink / raw)
  To: gcc-bugs

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

Bence Szabó <sbence92 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sbence92 at gmail dot com

--- Comment #2 from Bence Szabó <sbence92 at gmail dot com> ---
A variant of the is still an issue even with GCC 11.

The below is a reduced version of a file that took 33 minutes(!) to compile,
cc1 starting from 1GB of memory usage, reaching 2GB eventually.
This example generates 10MB of assembly as it unrolls the constructor calls
even with O0.

struct B
{
   B() {}
};

struct A
{

   B b[128][1875];
};

A a{};


I've tried to find a similar PR, this was the closest one.
Is this a known issue?

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

* [Bug c++/61592] ICE with large array with initialization
  2014-06-24 15:57 [Bug c++/61592] New: ICE with large array with initialization jakub at gcc dot gnu.org
  2014-06-24 15:58 ` [Bug c++/61592] " jakub at gcc dot gnu.org
  2021-04-29  7:50 ` sbence92 at gmail dot com
@ 2021-05-28  7:29 ` pinskia at gcc dot gnu.org
  2021-05-28  7:29 ` pinskia at gcc dot gnu.org
  2021-05-28  7:29 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-05-28  7:29 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc at gyoo dot com

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 77443 has been marked as a duplicate of this bug. ***

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

* [Bug c++/61592] ICE with large array with initialization
  2014-06-24 15:57 [Bug c++/61592] New: ICE with large array with initialization jakub at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-05-28  7:29 ` pinskia at gcc dot gnu.org
@ 2021-05-28  7:29 ` pinskia at gcc dot gnu.org
  2021-05-28  7:29 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-05-28  7:29 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkropki at yahoo dot co.uk

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 80272 has been marked as a duplicate of this bug. ***

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

* [Bug c++/61592] ICE with large array with initialization
  2014-06-24 15:57 [Bug c++/61592] New: ICE with large array with initialization jakub at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-05-28  7:29 ` pinskia at gcc dot gnu.org
@ 2021-05-28  7:29 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-05-28  7:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 100807 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2021-05-28  7:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-24 15:57 [Bug c++/61592] New: ICE with large array with initialization jakub at gcc dot gnu.org
2014-06-24 15:58 ` [Bug c++/61592] " jakub at gcc dot gnu.org
2021-04-29  7:50 ` sbence92 at gmail dot com
2021-05-28  7:29 ` pinskia at gcc dot gnu.org
2021-05-28  7:29 ` pinskia at gcc dot gnu.org
2021-05-28  7:29 ` 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).