Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105388

qhash.h:553:17: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807

    XMLWordPrintable

Details

    • 9c9cdbedf173e3e5f73205826deb97337f182a3e

    Description

      Compiling with g++ LTO throws up the following warning:

      In member function 'rehash', inlined from 'findOrInsert' at /opt/qt-6.2/include/QtCore/qhash.h:640:19:
      /opt/qt-6.2/include/QtCore/qhash.h:553:17: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
       553 | spans = new Span[nSpans];
       
      /opt/qt-6.2/include/QtCore/qhash.h: In member function 'findOrInsert':
      /usr/include/c++/11.2.0/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)
       

      Not a major problem but does look wrong.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            stuart Stuart Foster
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: