libstdc++/5601: stl_alloc.h:288: parse error before `[' token When using gcc-3.0.4pre today's cvs
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Wed Feb 6 09:01:00 GMT 2002
>>>Number: 5601
>>>Category: libstdc++
> Here is My patch.
> Is it right?
I am afraid not. stl_config.h is not used anymore and should not be
reintroduced. All such configuration within libstdc++-v3 is now done
in c++config. Thus, your patch works by random luck.
BTW, did you really install gcc-3.0.4pre with prefix=/usr? Unless you
are the person that maintains gcc for an OS, that will get you in
trouble and is probably related to your current trouble.
[...]
>diff -urN base/libstdc++-v3/include/bits/stl_alloc.h
>fixed/libstdc++-v3/include/bits/stl_alloc.h
>--- base/libstdc++-v3/include/bits/stl_alloc.h Fri Jun 29 17:45:07 2001
>+++ fixed/libstdc++-v3/include/bits/stl_alloc.h Wed Feb 6 09:33:18 2002
>@@ -59,6 +59,7 @@
> #include <bits/std_cstdlib.h>
> #include <bits/std_cstring.h>
> #include <bits/std_cassert.h>
>+#include <bits/stl_config.h>
> #ifndef __RESTRICT
> # define __RESTRICT
> #endif
--
Loren J. Rittle
Senior Staff Software Engineer, Distributed Object Technology Lab
Networks and Infrastructure Research Lab (IL02/2240), Motorola Labs
rittle@rsch.comm.mot.com, KeyID: 2048/ADCE34A5, FDC0292446937F2A240BC07D42763672
More information about the Gcc-bugs
mailing list