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

QDate asserts on a valid date with MSVC 2022

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical 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)

      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

        For Gerrit Dashboard: QTBUG-129347
        # Subject Branch Project Status CR V

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes