From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EEBC93858419; Mon, 11 Jul 2022 15:43:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EEBC93858419 From: "luydorarko at vusra dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105838] [10/11/12/13 Regression] g++ 12.1.0 runs out of memory or time when building const std::vector of std::strings Date: Mon, 11 Jul 2022 15:43:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: luydorarko at vusra dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2022 15:43:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105838 luydorarko at vusra dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |luydorarko at vusra dot com --- Comment #9 from luydorarko at vusra dot com --- Comment re Bug #106241 being marked as a duplicate of this bug #105838. This bug #105838 is marked as affecting only gcc versions 10/11/12/13 and is triggered only on -O1 or higher optimization due to quadratic behavior seen with "only" 21K strings. Bug #106241 refers to gcc 7.5.0 and is triggered e= ven without -O1 but needs millions (!!) of strings to do so. Acknowledging that both result in OOM, they do not resemble each other beyond that.=