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

QDate asserts on a valid date with MSVC 2022

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8.0
    • 6.7.3, 6.8.0 RC
    • Core: Date/Time
    • None
    • Windows 10, MSVC 2022
    • Windows
    • e9778e602 (6.8.0)

    Description

      This was introduced in 6.8.0 rc; previous 6.8 betas were not affected.

      Just add the following to main() in a empty project

          QDate testDate = QDate::fromString("2024-09-25","yyyy-MM-dd");

      This causes an assert in debug builds on current MSVC 2022 (17.11.2, 17.11.4) but not on the default MinGW chain.

      ASSERT: "maximum.date().toJulianDay() == 5373484" in file C:\Users\qt\work\qt\qtbase\src\corelib\time\qdatetimeparser.cpp, line 1617

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              tec Terence Conklin
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes