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

std::valarray poorly named locals cause intro/17.names test to fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.1.4
    • Fix Version/s: 4.2.0
    • Component/s: 26. Numerics
    • Labels:
      None

      Description

      There are a few simple errors in valarray that cause test 'intro/17.names.cpp' to not compile. The problem is that the local variable names 'msk', 'sec' and 'sl' are bad [as defined by the test itself]. In most places the more appropriate '__<name>' local variable format is used.

        Attachments

        1. valarray.patch
          3 kB
          Travis Vitek

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: