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

[MSVC] 18.numeric.special.int test fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 4.2.1
    • 4.2.2
    • Tests
    • None
    • MSVC

    • Incorrect Behavior

    Description

      The 18.numeric.special.int test fails with the following assertions:

      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<bool>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<char>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<signed char>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<unsigned char>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<short>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<unsigned short>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<int>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<unsigned int>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<long>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<unsigned long>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<_RWSTD_LONG_LONG>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<unsigned _RWSTD_LONG_LONG>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      
      # ASSERTION (S7) (4 lines):
      # TEXT: std::numeric_limits<wchar_t>::traps == 0, got true
      # CLAUSE: numeric.special
      # LINE: 587
      

      Problem is in that the test unconditionally expects that numeric_limits<>::traps is false for all integral types. Perhaps we need to hardcode the expected results depending on the platform (as done in 18.numeric.special.float test).

      Attachments

        Activity

          People

            vitek Travis Vitek
            farid Farid Zaripov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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