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

Thiago Macieira thiago.macieira at intel.com
Wed Mar 8 04:45:41 CET 2023


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

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230307/8a68714b/attachment.bin>


More information about the Interest mailing list