Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 86677 invoked from network); 24 Aug 2007 00:06:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Aug 2007 00:06:54 -0000 Received: (qmail 69763 invoked by uid 500); 24 Aug 2007 00:06:51 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 69753 invoked by uid 500); 24 Aug 2007 00:06:51 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 69742 invoked by uid 99); 24 Aug 2007 00:06:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 17:06:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 00:07:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 39E15714210 for ; Thu, 23 Aug 2007 17:06:31 -0700 (PDT) Message-ID: <29333448.1187913991235.JavaMail.jira@brutus> Date: Thu, 23 Aug 2007 17:06:31 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-344) [Sun C++] warnings on std::strstream::rdbuf hiding std::ios::rdbuf In-Reply-To: <7809226.1172865230863.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522321 ] Martin Sebor commented on STDCXX-344: ------------------------------------- Based on the Sun C++ 5.9 output with the -errtags option, the flag that silences the warning is -erroff=hidef: $ CC -c -mt -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-suncc-5.9-12d/include -library=%none -O -m32 +w -errtags -KPIC /amd/devco/sebor/stdcxx/src/strstream.cpp "/amd/devco/sebor/stdcxx/include/strstream", line 195: Warning, hidef: std::istrstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *). "/amd/devco/sebor/stdcxx/include/strstream", line 233: Warning, hidef: std::ostrstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *). "/amd/devco/sebor/stdcxx/include/strstream", line 273: Warning, hidef: std::strstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *). 3 Warning(s) detected. $ With -erroff=hide: $ CC -c -mt -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-suncc-5.9-12d/include -library=%none -O -m32 +w -erroff=hidef -KPIC /amd/devco/sebor/stdcxx/src/strstream.cpp $ > [Sun C++] warnings on std::strstream::rdbuf hiding std::ios::rdbuf > ------------------------------------------------------------------ > > Key: STDCXX-344 > URL: https://issues.apache.org/jira/browse/STDCXX-344 > Project: C++ Standard Library > Issue Type: Bug > Components: 27. Input/Output > Affects Versions: 4.1.2, 4.1.3 > Environment: Sun C++ > Reporter: Martin Sebor > Assignee: Martin Sebor > Priority: Minor > > Compiling the header strstream causes Sun C++ to emit warnings like those below: > CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j8/include -library=%none -g +w /amd/devco/sebor/dev/stdlib/src/strstream.cpp > "/amd/devco/sebor/dev/stdlib/include/strstream", line 188: Warning: std::istrstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *). > "/amd/devco/sebor/dev/stdlib/include/strstream", line 226: Warning: std::ostrstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *). > "/amd/devco/sebor/dev/stdlib/include/strstream", line 266: Warning: std::strstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *). > 3 Warning(s) detected. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.