https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358
--- Comment #37 from Holger Hoffstätte ---
(In reply to Richard Biener from comment #36)
> Should be fixed on trunk. The issue is latent since forever, I'll pick this
> to most branches. I hope somebody can test on the very original Qt testcas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358
--- Comment #27 from Holger Hoffstätte ---
If I add lifetime-extending printfs to QStringTokenizerBase::next() like this:
--- qstringtokenizer.h 2025-07-04 17:56:28.523676630 +0200
+++ qstringtokenizer-printf.h 2025-07-04 17:56:03.998840901
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358
--- Comment #23 from Holger Hoffstätte ---
(In reply to Holger Hoffstätte from comment #22)
> Created attachment 61758 [details]
> Readable reproducer for debugging
>
> Slightly more reduced, no need for the join business.
..and not for the fa
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358
Holger Hoffstätte changed:
What|Removed |Added
Attachment #61755|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358
--- Comment #19 from Holger Hoffstätte ---
(In reply to Holger Hoffstätte from comment #18)
> Consequently the problematic second test (testNotOK) can be "fixed" by:
>
> auto tok = qTokenize(std::move(expected.join(u'.')), QLatin1Char('.'),
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358
--- Comment #18 from Holger Hoffstätte ---
Furthermore, using an explicit std::move to the first test like this:
auto joined = expected.join(u'.');
auto tok = qTokenize(std::move(joined), QLatin1Char('.'),
Qt::CaseSensitive, Qt::SkipEmp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358
--- Comment #17 from Holger Hoffstätte ---
Created attachment 61755
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61755&action=edit
Readable reproducer for debugging
(In reply to rguent...@suse.de from comment #16)
> Does -fno-lifetime-d
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358
--- Comment #7 from Holger Hoffstätte ---
Sorry if the following is unhelpful - I'm just an interested observer.
Since I could easily reproduce the problem I decided to poke at things
in gdb and got a bit annoyed at the bad test code style. So