This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20259] New: iostream functions/methods declared
- From: "ramya dot chandar at wipro dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2005 04:43:51 -0000
- Subject: [Bug c++/20259] New: iostream functions/methods declared
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Environment : i686-pc-linux-gnu
Compiler Version: GCC 3.3.2
Kernel Version : 2.4.7-10
I am compiling a "String.cc" file. It is giving the below given error.
But, I could see the ipfx function being defined in 'iostream.h" and the
"iostream.h" is being included in the corresponding header file "String.h"
======== Rebuilding "String.o" ========
/cm4/tools/GNU/src/gcc/Linux_2.4.7-10/bin/g++ -DHOST_ARCH_LINUX
-I../include -I. -DSOLARIS2 -DCPP_LOCATION=\"\" -DIDL_CFE_VERSION=\"1.3.0\"
-fpermissive -Wno-deprecated -c String.cc -o String.o
String.cc: In function `std::istream& operator>>(std::istream&, String&)':
String.cc:1195: error: `ipfx' undeclared (first use this function)
String.cc:1195: error: (Each undeclared identifier is reported only once for
each function it appears in.)
String.cc:1217: warning: invalid conversion from `int' to `std::_Ios_Iostate'
String.cc:1217: warning: initializing argument 1 of `void
std::basic_ios<_CharT, _Traits>::clear(std::_Ios_Iostate) [with _CharT =
char, _Traits = std::char_traits<char>]'
String.cc: In function `int readline(std::istream&, String&, char, int)':
String.cc:1223: error: `ipfx' undeclared (first use this function)
*** Error code 1
clearmake: Error: Build script failed for "String.o"
========================================================
And I could see, the ipfx function is being optimized in iostream.h. Is that
creating the problem.
Any idea, Why this problem is happening with GCC 3.3.2.
NOTE: I am able to compile the same code with GCC 2.95.3
--
Summary: iostream functions/methods declared
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ramya dot chandar at wipro dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: Linux 2.4.7-10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20259