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

SIGSEGV in std::valarray::operator[](gslice)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.2, 4.1.3, 4.1.4
    • 4.2.0
    • 26. Numerics
    • None
    • all

    • Runtime Error

    Description

      ***Created By: micucci @ Dec 13, 1999 09:33:05 AM***

                    1. WORK NOTES COPIED FROM INCIDENT 879763 ########
            • Entered By: leroy @ Wednesday, November 10, 1999 11:59:53 AM ****
              [see Rogue Wave issue 4437: http://insight.roguewave.com/onyxinsight/qa/qa4437.htm]
              ***Modified By: sebor @ Jan 24, 2000 03:40:38 PM***
              This doesn't compile with g++ 2.95.2:
              test.cpp:9: `operator *' not defined
              but does core dump with edg 2.42

      ***Modified By: pedretti @ Feb 07, 2000 05:37:33 PM***
      This is actually a problem with the valarray constructor that takes a gslice as an argument, which is called by the valarray::operator[] ( gslice );. in fact, the following code would cause the core dump:

      ------

      #include <valarray>

      int main()
      {
      std::valarray<double> dval;
      dval[std::gslice()];
      }


      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: