This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: string and member templates
- To: Joe Buck <jbuck at synopsys dot com>
- Subject: Re: string and member templates
- From: Oleg Krivosheev <kriol at fnal dot gov>
- Date: Fri, 26 Sep 1997 10:34:45 -0500 (CDT)
- cc: egcs team <egcs at cygnus dot com>
Hi, Joe
On Thu, 25 Sep 1997, Joe Buck wrote:
> Date: Thu, 25 Sep 1997 16:44:56 -0700 (PDT)
> From: Joe Buck <jbuck@synopsys.com>
> To: egcs team <egcs@cygnus.com>
> Subject: string and member templates
>
> I see that the member template code in std/bastring.h is ifdef'ed out
> with #if 0. I suggest that this be changed to
>
just tried to build egcs with your patch
on Sun/Solaris Ultra box:
test -z "-fPIC" || \
/home/room1/kriol/egcs-970924/gcc/xgcc
-B/home/room1/kriol/egcs-970924/gcc/ -c -g -O2 -fno-implicit-templates -I.
-I./stl -I../libio -I./../libio -nostdinc++ -fPIC stdexcepti.cc -o
pic/stdexcepti.o
In file included from string:6,
from stdexcept:36,
from stdexcepti.cc:8:
std/bastring.h:156: type specifier omitted for parameter
std/bastring.h:156: parse error before `&'
std/bastring.h:156: invalid member template declaration
make[1]: *** [stdexcepti.o] Error 1
regards
OK