Bug 73460 - gcc warning on sstream
Summary: gcc warning on sstream
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: gcc
Version: 2.1
Hardware: ia64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-09-04 22:22 UTC by William Cohen
Modified: 2007-11-30 22:06 UTC (History)
0 users

Fixed In Version: gcc-c++-3.2.3-24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-01-21 21:24:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
The sstream.diff seems like a bandaid fix to the problem (358 bytes, patch)
2002-09-04 22:24 UTC, William Cohen
no flags Details | Diff

Description William Cohen 2002-09-04 22:22:24 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513

Description of problem:
gcc gives a warning message about unsigned and signed compare on ia64 derry. I
originally thought this was same as bugzilla 57650, but I took a look at the
/usr/include/g++-3/sstream it it is identical to the one on an ia32 machine
which doesn't give the error message.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Compile the attached code with

 c++  -W -Wall -Wunused -Wmissing-prototypes -pipe -g -O2 -DCONST_POPT    -c -o
example.o example.cpp -save-temps

2.
3.
	

Actual Results:  c++: Warning: -pipe ignored since -save-temps specified
In file included from example.cpp:16:
/usr/include/g++-3/sstream: In method `streampos stringbuf::seekoff 
(long int, ios::seek_dir, int)':
/usr/include/g++-3/sstream:271: warning: comparison between signed and unsigned
integer expressions


Expected Results:  no warning

Additional info:

example.cpp ---------------------


#include <unistd.h>
#include <sys/wait.h>

#include <cerrno>
#include <sstream>
#include <iostream>

int main()
{
  return 0;
}

Comment 1 William Cohen 2002-09-04 22:24:32 UTC
Created attachment 74924 [details]
The sstream.diff seems like a bandaid fix to the problem


Note You need to log in before you can comment on or make changes to this bug.