Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-695 [HP aCC 6.15] lots of noise due to compiler remarks
  3. STDCXX-699

[HP aCC 6.15] remark #4282: fstream ctor calls virtual setbuf()

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: 27. Input/Output
    • Labels:
      None

      Description

      HP aCC 6.15 issues a remark noting that basic_filebuf ctor calls the virtual member function setbuf(). The purpose of the remark is to warn that the usual virtual dispatch doesn't take place for virtual function calls from class ctors (i.e., the function defined the ctor's class is called). We should silence the remark by qualifying the call with the name of the class.

      aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include -AA +O2 +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 +W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286 +Z $(TOPDIR)/src/ti_filebuf.cpp
      "$(TOPDIR)/include/fstream", line 112: remark #4282-D: virtual function is called from constructor/destructor
      setbuf (0, _RWSTD_DEFAULT_BUFSIZE);
      ^

        Attachments

          Activity

            People

            • Assignee:
              sebor Martin Sebor
              Reporter:
              sebor Martin Sebor

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment