[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

luydorarko at vusra dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 11 15:43:49 GMT 2022


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

luydorarko at vusra dot com <luydorarko at vusra dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luydorarko at vusra dot com

--- Comment #9 from luydorarko at vusra dot com <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 even
without -O1 but needs millions (!!) of strings to do so. Acknowledging that
both result in OOM, they do not resemble each other beyond that.


More information about the Gcc-bugs mailing list