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

[REG SiC 6.4 -> 6.5] QString::arg(qfloat16{}) is ambiguous if QFLOAT16_IS_NATIVE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.9.0 FF
    • 6.5.6, 6.6.3, 6.7.1, 6.8.0 FF
    • None
    • 5
    • 967736b96 (dev), 9a95c4ba4 (6.8), 88e94df35 (6.7), fe5b07d20 (tqtc/lts-6.5), fafa568a6 (tqtc/lts-6.2), 563ed822f (dev)
    • Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111, Foundation Sprint 112, Foundation Sprint 113, Foundation Sprint 114, Foundation Sprint 115, Foundation Sprint 116, Foundation Sprint 117, Foundation Sprint 118, Foundation Sprint 119, Foundation Sprint 120, Foundation Sprint 121

    Description

      QString fmt = "%1";
      assert(fmt.arg(qfloat16(4.125f)) == "4.125"); // ERROR: ambiguous (when QFLOAT16_IS_NATIVE)
      

      It works when !QFLOAT16_IS_NATIVE, in particular, before Qt 6.5. This is similar to QTBUG-116064.

      Attachments

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: