[HP aCC 6.15] remark #4282: fstream ctor calls virtual setbuf()
---------------------------------------------------------------
Key: STDCXX-699
URL: https://issues.apache.org/jira/browse/STDCXX-699
Project: C++ Standard Library
Issue Type: Bug
Components: 27. Input/Output
Affects Versions: 4.2.0
Reporter: Martin Sebor
Priority: Minor
Fix For: 4.2.1
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);
^
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.