From mboxrd@z Thu Jan 1 00:00:00 1970 From: veksler@il.ibm.com To: gcc-gnats@gcc.gnu.org Subject: libstdc++/3209: strstream fails because _STL_BEGIN_NAMESPACE is undefined Date: Sun, 17 Jun 2001 03:26:00 -0000 Message-id: <20010617102143.10235.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00712.html List-Id: >Number: 3209 >Category: libstdc++ >Synopsis: strstream fails because _STL_BEGIN_NAMESPACE is undefined >Confidential: no >Severity: serious >Priority: high >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Jun 17 03:26:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: veksler@il.ibm.com >Release: gcc version 3.0 20010616 (prerelease) >Organization: >Environment: powerpc-ibm-aix4.3.3.0 Thread model: single >Description: #include Does not work because __STL_BEGIN_NAMESPACE is undefined before the first reference. It is a regression from gcc-2.95.2 (which used to work). I guess this is too late for gcc-3.0 :-( configuration options (during build): ../gcc/configure --prefix=/afs/haifa/proj7/gec2/gnu --enable-languages=c++ --disable-multilib Compiler message: $ gcc -c f.cc In file included from f.cc:1: /afs/haifa/proj7/gec2/gnu/include/g++-v3/strstream:39: syntax error before `:' token /afs/haifa/proj7/gec2/gnu/include/g++-v3/strstream:43: `_Traits' was not declared in this scope /afs/haifa/proj7/gec2/gnu/include/g++-v3/strstream:43: syntax error before `;' token /afs/haifa/proj7/gec2/gnu/include/g++-v3/strstream:49: type specifier omitted for parameter /afs/haifa/proj7/gec2/gnu/include/g++-v3/strstream:49: parse error before `,' token [big error trace removed] >How-To-Repeat: $ echo "#include " > f.cc $ g++ -c f.cc >Fix: Index: libstdc++-v3/include/backward/strstream =================================================================== RCS file: /cvs/gcc/gcc/libstdc++-v3/include/backward/strstream,v retrieving revision 1.1.4.1 diff -u -r1.1.4.1 strstream --- strstream 2001/05/14 19:49:02 1.1.4.1 +++ strstream 2001/06/17 10:05:36 @@ -20,6 +20,7 @@ #define __SGI_STL_STRSTREAM #include "backward_warning.h" +#include #include #include #include >Release-Note: >Audit-Trail: >Unformatted: