Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 32527 invoked from network); 2 Mar 2007 20:01:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2007 20:01:13 -0000 Received: (qmail 28942 invoked by uid 500); 2 Mar 2007 20:01:22 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 28928 invoked by uid 500); 2 Mar 2007 20:01:21 -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 28916 invoked by uid 99); 2 Mar 2007 20:01:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 12:01:21 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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, 02 Mar 2007 12:01:12 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C32647142EE for ; Fri, 2 Mar 2007 12:00:50 -0800 (PST) Message-ID: <25407737.1172865650780.JavaMail.jira@brutus> Date: Fri, 2 Mar 2007 12:00:50 -0800 (PST) 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_12477423 ] Martin Sebor commented on STDCXX-344: ------------------------------------- This affects not only the library build (as shown above) but also any other translation unit that #includes (and uses a specialization of one of the class templates defined there). For instance, here's a warning issued for the example program alg1.cpp: CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/sunpro-5.8.j8/include -I/amd/devco/sebor/dev/stdlib/examples/include -library=%none -g +w /amd/devco/sebor/dev/stdlib/examples/tutorial/alg1.cpp "/amd/devco/sebor/dev/stdlib/include/sstream", line 362: Warning: std::ostringstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *). "/amd/devco/sebor/dev/stdlib/examples/tutorial/alg1.cpp", line 148: Where: While specializing "std::ostringstream ". "/amd/devco/sebor/dev/stdlib/examples/tutorial/alg1.cpp", line 148: Where: Specialized in non-template code. 1 Warning(s) detected. > [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.3, 4.1.2 > Environment: Sun C++ > Reporter: 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.