Qpid
  1. Qpid
  2. QPID-4531

Variant.cpp cast of -0 failing with older GCC

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21
    • Component/s: C++ Broker
    • Labels:
      None

      Description

      Cast of negative zero to a signed type is throwing with GCC 4.1.2, but not with GCC 4.4.6 .

      This causes a failure in unit tests.

        Activity

        michael goulish created issue -
        Hide
        michael goulish added a comment -

        rev 1431548 from astitcher.

        Show
        michael goulish added a comment - rev 1431548 from astitcher.
        michael goulish made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Chuck Rolke added a comment -

        Visual Studio 2010 complains twice:
        warning C4146: unary minus operator applied to unsigned type, result still unsigned D:\svn\Phase7\qpid\cpp\src\qpid\types\Variant.cpp 125

        Build still completes ok.

        Show
        Chuck Rolke added a comment - Visual Studio 2010 complains twice: warning C4146: unary minus operator applied to unsigned type, result still unsigned D:\svn\Phase7\qpid\cpp\src\qpid\types\Variant.cpp 125 Build still completes ok.
        Justin Ross made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        4h 34m 1 michael goulish 10/Jan/13 20:07
        Resolved Resolved Closed Closed
        199d 22h 45m 1 Justin Ross 29/Jul/13 19:53

          People

          • Assignee:
            michael goulish
            Reporter:
            michael goulish
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development