[Interest] can't dump QStringList with qDebug()

Hamish Moffatt hamish at risingsoftware.com
Wed Mar 8 06:20:02 CET 2023


On 8/3/23 14:45, Thiago Macieira wrote:
> On Tuesday, 7 March 2023 17:21:11 PST Hamish Moffatt via Interest wrote:
>> I said gcc 10 earlier, but I meant to say clang 11. But I also see it in
>> clang 14, and in VS 2019 (17.5.1 - latest).
> Cannot reproduce with those files with GCC 11, 12, 13 or Clang 15, all with Qt
> 6.6.
>
> Looking at the generated assembly, I can also see the compiler realised the
> list is always empty, so the loop from printSequentialContainer() disappears.f
>

I confirm that my test code compiles in 6.5.0-beta3.


thanks

Hamish



More information about the Interest mailing list