public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "sbence92 at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61592] ICE with large array with initialization Date: Thu, 29 Apr 2021 07:50:48 +0000 [thread overview] Message-ID: <bug-61592-4-RMmc993wml@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-61592-4@http.gcc.gnu.org/bugzilla/> 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?
next prev parent reply other threads:[~2021-04-29 7:50 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-06-24 15:57 [Bug c++/61592] New: " 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 [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-61592-4-RMmc993wml@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).