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

[HP aCC 6.16] warnings compiling fmtflags_manip.cpp example

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: Examples
    • Labels:
      None
    • Environment:

      aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]

    • Severity:
      Compiler Warning

      Description

      When compiled with HP aCC 6.16 the example program fmtflags_manip.cpp produces the following warnings:

      aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include  -AA  +O2  +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249 +W4255,4272,4284,4285,4286,4296,4297 +W3348   $(TOPDIR)/examples/manual/fmtflags_manip.cpp
      "$(TOPDIR)/examples/manual/fmtflags_manip.cpp", line 53: warning #4257-D: enumeration value is out of declared range, behavior is unspecified
                if (flags != std::ios_base::fmtflags (-1))
                             ^
      
      "$(TOPDIR)/examples/manual/fmtflags_manip.cpp", line 53: warning #2514-D: pointless comparison of unsigned integer with a negative constant
                if (flags != std::ios_base::fmtflags (-1))
                          ^
      
      "$(TOPDIR)/examples/manual/fmtflags_manip.cpp", line 53: warning #4275-D: constant out of range ([1 - 262144]) for the operator
                if (flags != std::ios_base::fmtflags (-1))
                          ^
      

        Attachments

          Activity

            People

            • Assignee:
              sebor Martin Sebor
              Reporter:
              sebor Martin Sebor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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