Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 69851 invoked from network); 29 Oct 2007 22:19:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2007 22:19:15 -0000 Received: (qmail 96642 invoked by uid 500); 29 Oct 2007 22:19:03 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 96621 invoked by uid 500); 29 Oct 2007 22:19:03 -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 96574 invoked by uid 99); 29 Oct 2007 22:19:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 15:19:03 -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; Mon, 29 Oct 2007 22:19:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4FE99714245 for ; Mon, 29 Oct 2007 15:18:52 -0700 (PDT) Message-ID: <10207623.1193696332324.JavaMail.jira@brutus> Date: Mon, 29 Oct 2007 15:18:52 -0700 (PDT) From: "Travis Vitek (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-614) [gcc 4.1/Linux] error on size_t in 27.stringbuf.xsputn.stdcxx-515.cpp In-Reply-To: <24139946.1193256831478.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-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Travis Vitek updated STDCXX-614: -------------------------------- Patch Info: [Patch Available] 2007-10-29 Travis Vitek STDCXX-614 * 27.stringbuf.xsputn.stdcxx-515.cpp (main): Include header and add namespace qualifier as required to compile. Index: 27.stringbuf.xsputn.stdcxx-515.cpp =================================================================== --- 27.stringbuf.xsputn.stdcxx-515.cpp (revision 589749) +++ 27.stringbuf.xsputn.stdcxx-515.cpp (working copy) @@ -27,10 +27,11 @@ #include // for stringstream #include // for string #include // for assert() +#include // for size_t int main () { - for (size_t i = 1; i <= 1024; ++i) { + for (std::size_t i = 1; i <= 1024; ++i) { std::stringstream strm; std::string s (i, 'a'); strm << s; > [gcc 4.1/Linux] error on size_t in 27.stringbuf.xsputn.stdcxx-515.cpp > --------------------------------------------------------------------- > > Key: STDCXX-614 > URL: https://issues.apache.org/jira/browse/STDCXX-614 > Project: C++ Standard Library > Issue Type: Bug > Components: Tests > Affects Versions: 4.2 > Environment: gcc 4.1.1 on Red Hat Enterprise Linux Server release 5 (Tikanga) > Reporter: Martin Sebor > Assignee: Travis Vitek > Priority: Minor > Fix For: 4.2.1 > > > The 27.stringbuf.xsputn.stdcxx-515.cpp fails to compile with gcc 4.1.1 on Red Hat Enterprise Linux Server release 5 with the error below: > gcc -c -I$(TOPDIR)/include/ansi -D_RWSTDDEBUG -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align $(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp > $(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp: In function 'int main()': > $(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp:33: error: 'size_t' was not declared in this scope > $(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp:33: error: expected `;' before 'i' > $(TOPDIR)/tests/regress/27.stringbuf.xsputn.stdcxx-515.cpp:33: error: 'i' was not declared in this scope > gmake: *** [27.stringbuf.xsputn.stdcxx-515.o] Error 1 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.