stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (STDCXX-699) [HP aCC 6.15] remark #4282: fstream ctor calls virtual setbuf()
Date Wed, 13 Feb 2008 16:15:08 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor resolved STDCXX-699.
---------------------------------

    Resolution: Fixed

Fix committed in [r612358|http://svn.apache.org/viewcvs?view=rev&rev=612358].
Latest builds are free of the remark.
Marking as resolved, will close after merging to 4.2.1 together with other patches for the
parent issue (STDCXX-695).

> [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: Sub-task
>          Components: 27. Input/Output
>    Affects Versions: 4.2.0
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2.1
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> 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.


Mime
View raw message