public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/3209: strstream fails because _STL_BEGIN_NAMESPACE is undefined
@ 2001-06-17 13:31 aoliva
  0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-06-17 13:31 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, veksler

Synopsis: strstream fails because _STL_BEGIN_NAMESPACE is undefined

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Sun Jun 17 13:30:59 2001
State-Changed-Why:
    Reported had headers left over from a previous installation.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3209&database=gcc


^ permalink raw reply	[flat|nested] 2+ messages in thread

* libstdc++/3209: strstream fails because _STL_BEGIN_NAMESPACE is undefined
@ 2001-06-17  3:26 veksler
  0 siblings, 0 replies; 2+ messages in thread
From: veksler @ 2001-06-17  3:26 UTC (permalink / raw)
  To: gcc-gnats

>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 <strstream>
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 <strstream>" > 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 <bits/stl_config.h>
 #include <bits/std_iosfwd.h>
 #include <bits/std_ios.h>
 #include <bits/std_istream.h>
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-17 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-17 13:31 libstdc++/3209: strstream fails because _STL_BEGIN_NAMESPACE is undefined aoliva
  -- strict thread matches above, loose matches on Subject: below --
2001-06-17  3:26 veksler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).