This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11653] New: [3.4 Regression] can no longer include iostream
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2003 23:36:50 -0000
- Subject: [Bug libstdc++/11653] New: [3.4 Regression] can no longer include iostream
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11653
Summary: [3.4 Regression] can no longer include iostream
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: critical
Priority: P1
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at physics dot uc dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu
I can no longer just include iostream by itself.
Code:
#include <iostream>
All now I get errors:
tin:~/src/gnu/gcctest>gcc -v prnew.1.cc
Reading specs from /home/gates/pinskia/linux/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Configured with: /home/gates/pinskia/src/gnu/gcc/src/configure --target=i686-pc-linux-
gnu --host=i686-pc-linux-gnu --enable-__cxa_atexit --enable-languages=java,objc,f77 --
prefix=/home/gates/pinskia/linux --enable-threads=posix --enable-shared
Thread model: posix
gcc version 3.4 20030723 (experimental)
/home/gates/pinskia/linux/lib/gcc-lib/i686-pc-linux-gnu/3.4/cc1plus -quiet -v -
D_GNU_SOURCE prnew.1.cc -quiet -dumpbase prnew.1.cc -mtune=pentiumpro -
auxbase prnew.1 -version -o /tmp/ccdql9H3.s
#include "..." search starts here:
#include <...> search starts here:
/home/gates/pinskia/linux/include/c++/3.4
/home/gates/pinskia/linux/include/c++/3.4/i686-pc-linux-gnu
/home/gates/pinskia/linux/include/c++/3.4/backward
/usr/local/include
/home/gates/pinskia/linux/include
/home/gates/pinskia/linux/lib/gcc-lib/i686-pc-linux-gnu/3.4/include
/home/gates/pinskia/linux/i686-pc-linux-gnu/include
/usr/include
End of search list.
GNU C++ version 3.4 20030723 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.4 20030723 (experimental).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128866
In file included from /home/gates/pinskia/linux/include/c++/3.4/ios:46,
from /home/gates/pinskia/linux/include/c++/3.4/ostream:45,
from /home/gates/pinskia/linux/include/c++/3.4/iostream:45,
from prnew.1.cc:1:
/home/gates/pinskia/linux/include/c++/3.4/bits/char_traits.h:191: error: `
wstreampos' does not name a type
In file included from /home/gates/pinskia/linux/include/c++/3.4/streambuf:784,
from /home/gates/pinskia/linux/include/c++/3.4/ios:50,
from /home/gates/pinskia/linux/include/c++/3.4/ostream:45,
from /home/gates/pinskia/linux/include/c++/3.4/iostream:45,
from prnew.1.cc:1:
/home/gates/pinskia/linux/include/c++/3.4/streambuf: In instantiation of
`std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >':
/home/gates/pinskia/linux/include/c++/3.4/bits/streambuf.tcc:167: instantiated from here
/home/gates/pinskia/linux/include/c++/3.4/streambuf:136: error: no type named `
pos_type' in `struct std::char_traits<wchar_t>'
/home/gates/pinskia/linux/include/c++/3.4/streambuf:236: error: no type named `
pos_type' in `struct std::char_traits<wchar_t>'
/home/gates/pinskia/linux/include/c++/3.4/streambuf:241: error: no type named `
pos_type' in `struct std::char_traits<wchar_t>'
/home/gates/pinskia/linux/include/c++/3.4/streambuf:578: error: no type named `
pos_type' in `struct std::char_traits<wchar_t>'
/home/gates/pinskia/linux/include/c++/3.4/streambuf:590: error: no type named `
pos_type' in `struct std::char_traits<wchar_t>'
In file included from /home/gates/pinskia/linux/include/c++/3.4/bits/basic_ios.h:454,
from /home/gates/pinskia/linux/include/c++/3.4/ios:51,
from /home/gates/pinskia/linux/include/c++/3.4/ostream:45,
from /home/gates/pinskia/linux/include/c++/3.4/iostream:45,
from prnew.1.cc:1:
/home/gates/pinskia/linux/include/c++/3.4/bits/basic_ios.h: In instantiation of
`std::basic_ios<wchar_t, std::char_traits<wchar_t> >':
/home/gates/pinskia/linux/include/c++/3.4/bits/basic_ios.tcc:183: instantiated from here
/home/gates/pinskia/linux/include/c++/3.4/bits/basic_ios.h:67: error: no type
named `pos_type' in `struct std::char_traits<wchar_t>'
In file included from /home/gates/pinskia/linux/include/c++/3.4/ostream:548,
from /home/gates/pinskia/linux/include/c++/3.4/iostream:45,
from prnew.1.cc:1:
/home/gates/pinskia/linux/include/c++/3.4/ostream: In instantiation of
`std::basic_ostream<wchar_t, std::char_traits<wchar_t> >':
/home/gates/pinskia/linux/include/c++/3.4/bits/ostream.tcc:712: instantiated from here
/home/gates/pinskia/linux/include/c++/3.4/ostream:64: error: no type named `
pos_type' in `struct std::char_traits<wchar_t>'
/home/gates/pinskia/linux/include/c++/3.4/bits/ostream.tcc:423: error: no type
named `pos_type' in `struct std::basic_ostream<wchar_t,
std::char_traits<wchar_t> >'
/home/gates/pinskia/linux/include/c++/3.4/bits/ostream.tcc:434: error: no type
named `pos_type' in `struct std::char_traits<wchar_t>'
In file included from /home/gates/pinskia/linux/include/c++/3.4/istream:775,
from /home/gates/pinskia/linux/include/c++/3.4/iostream:46,
from prnew.1.cc:1:
/home/gates/pinskia/linux/include/c++/3.4/istream: In instantiation of `std::basic_istream<
wchar_t, std::char_traits<wchar_t> >':
/home/gates/pinskia/linux/include/c++/3.4/bits/istream.tcc:1201: instantiated from here
/home/gates/pinskia/linux/include/c++/3.4/istream:65: error: no type named `
pos_type' in `struct std::char_traits<wchar_t>'
/home/gates/pinskia/linux/include/c++/3.4/bits/istream.tcc:934: error: no type
named `pos_type' in `struct std::basic_istream<wchar_t,
std::char_traits<wchar_t> >'
/home/gates/pinskia/linux/include/c++/3.4/bits/istream.tcc:947: error: no type
named `pos_type' in `struct std::char_traits<wchar_t>'
If I define _GLIBCPP_USE_WCHAR_T before including iostream it works.
tin:~/src/gnu/gcctest>gcc -v
Reading specs from /home/gates/pinskia/linux/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Configured with: /home/gates/pinskia/src/gnu/gcc/src/configure --target=i686-pc-linux-
gnu --host=i686-pc-linux-gnu --enable-__cxa_atexit --enable-languages=java,objc,f77 --
prefix=/home/gates/pinskia/linux --enable-threads=posix --enable-shared
Thread model: posix
gcc version 3.4 20030723 (experimental)
I think the was caused by Zack Weinberg's patch to add UCN support but I do not know
that for sure.