Bugzilla – Bug 1223820
GCC 14 fails to build libstorage-ng
Last modified: 2024-05-10 06:55:40 UTC
Created attachment 874637 [details] tiny program to reproduce problem The testsuite of libstorage-ng fails with gcc14: double free or corruption (fasttop) I have created a small program to reproduce the problem. Could that be a gcc bug? Or is the program wrong?
Created attachment 874638 [details] even shorter program
I'll have a look.
Shorter: #include <string> #include <initializer_list> void __attribute__((noipa)) tata(std::initializer_list<std::string> init) { throw 1; } int main() { try { tata({ "0123456789012346" }); // using shorter string or "..."s works } catch (...) { } }
This now https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114935
Fixed in 14.1.0. openSUSE:Factory:Staging:N (forgot to add a bugzilla ref). Thanks for reporting.