This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/4052: including algobase.h results in error
- To: gcc-gnats at gcc dot gnu dot org
- Subject: libstdc++/4052: including algobase.h results in error
- From: fnf at ninemoons dot com
- Date: Fri, 17 Aug 2001 15:16:55 -0700
- Cc: fnf at ninemoons dot com
- Reply-To: fnf at ninemoons dot com
>Number: 4052
>Category: libstdc++
>Synopsis: including algobase.h results in syntax error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Fri Aug 17 15:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Fred Fish
>Release: 3.1 20010817 (experimental)
>Organization:
none
>Environment:
System: Linux fishpond.ninemoons.com 2.4.2-2smp #1 SMP Sun Apr 8 20:21:34 EDT 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /src/sourceware/gcc/gcc/configure -v --prefix=/usr/sourceware --enable-shared
>Description:
Including algobase.h results in a syntax error. Older versions
of gcc don't exhibit this problem (2.96 for example).
>How-To-Repeat:
Script started on Fri Aug 17 15:10:27 2001
$ /usr/bin/gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)
$ cat j.cc
#include <algobase.h>
$ /usr/bin/gcc -c j.cc
$ /usr/sourceware/bin/gcc -v
Reading specs from /usr/sourceware/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /src/sourceware/gcc/gcc/configure -v --prefix=/usr/sourceware --enable-shared
Thread model: single
gcc version 3.1 20010817 (experimental)
$ /usr/sourceware/bin/gcc -c j.cc
In file included from /usr/sourceware/include/g++-v3/backward/algobase.h:58,
from j.cc:1:
/usr/sourceware/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from /usr/sourceware/include/g++-v3/backward/algobase.h:60,
from j.cc:1:
/usr/sourceware/include/g++-v3/backward/iterator.h:83: `reverse_bidirectional_iterator'
not declared
/usr/sourceware/include/g++-v3/backward/iterator.h:85: `istream_iterator' not
declared
/usr/sourceware/include/g++-v3/backward/iterator.h:86: `ostream_iterator' not
declared
/usr/sourceware/include/g++-v3/backward/iterator.h:108: parse error before `}'
token
$ exit
exit
Script done on Fri Aug 17 15:11:09 2001
>Fix:
No fix currently known. Perhaps it is a simple as needing to
include another header prior to including algobase.h.
>Release-Note:
>Audit-Trail:
>Unformatted: