You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/01/16 06:35:34 UTC

[jira] Created: (STDCXX-699) [HP aCC 6.15] remark #4282: fstream ctor calls virtual setbuf()

[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.


[jira] Updated: (STDCXX-699) [HP aCC 6.15] remark #4282: fstream ctor calls virtual setbuf()

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-699:
--------------------------------

      Severity:   (was: Compiler Warning)
    Issue Type: Sub-task  (was: Bug)
        Parent: 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
>            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.


[jira] Assigned: (STDCXX-699) [HP aCC 6.15] remark #4282: fstream ctor calls virtual setbuf()

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-699:
-----------------------------------

    Assignee: Martin Sebor

> [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
>
>
> 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.