-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.5.0
-
None
-
-
1acbcc318 (dev), 5f5daae04 (dev), af7bc16fc (6.5), 413fbcabb (6.5)
During migration to g++ 12 I hit the warnings reported in QTBUG-105388. After upgrading to Qt 6.5.0 those are gone, but I still get one warning (multiple times from multiple locations in my code, this is one stack example but always on qhash.h:561):
In member function '__ct ', inlined from 'detached' at []/include/QtCore/qhash.h:577:20, inlined from 'detach' at []/include/QtCore/qhash.h:941:75: []/QtCore/qhash.h:561:17: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 561 | spans = new Span[nSpans]; | ^ /usr/include/c++/12/new: In member function 'detach': /usr/include/c++/12/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^
This is using Qt 6.5.0, g++ 12.2.0 with LTO enabled.
| For Gerrit Dashboard: QTBUG-113335 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 475867,3 | QHash: centralize the span allocation | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 475868,5 | QHash: suppress GCC 12 & 13 warning that QHash could overflow | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 477988,2 | QHash: centralize the span allocation | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
| 477989,2 | QHash: suppress GCC 12 & 13 warning that QHash could overflow | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |