Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-550

[Sun C++] 64-bit conversion warnings building utilities

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.1.2, 4.1.3, 4.1.4
    • 4.2.2
    • Utilities
    • None
    • Sun C++ 5.9, wide (64-bit) mode

    • Compiler Warning

    Description

      Compiling the utilities with Sun C++ in wide (64-bit) mode produces a large number of warnings of the type: Conversion of 64 bit type value to "unsigned" causes truncation. Most of these might be benign and can be silenced by adding appropriate casts but there might be some, especially those involving unsigned char, that should be reviewed more carefully to make sure they don't indicate real problems. For example, the localedef utility should validate data read from character set description files and locale definition files to make sure it's in the range of unsigned char (or 8 bit unsigned integer type to be precise) and issue diagnostics for values that exceed this range.

      Attachments

        1. suncc-64-bit-warnings.txt
          23 kB
          Martin Sebor

        Issue Links

          Activity

            People

              elemings Eric Lemings
              sebor Martin Sebor
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 8h
                  8h