libstdc++/5601: stl_alloc.h:288: parse error before `[' token When using gcc-3.0.4pre today's cvs
Kaoru Fukui
k_fukui@highway.ne.jp
Tue Feb 5 17:00:00 GMT 2002
On 6 Feb, To: gcc-gnats@gcc.gnu.org wrote:
>
>>Number: 5601
>>Category: libstdc++
>>Synopsis: stl_alloc.h:288: parse error before `[' token When using gcc-3.0.4pre today's cvs
>>Confidential: no
>>Severity: serious
>>Priority: high
>>Responsible: unassigned
>>State: open
>>Class: sw-bug
>>Submitter-Id: net
>>Arrival-Date: Tue Feb 05 16:36:00 PST 2002
>>Closed-Date:
>>Last-Modified:
>>Originator: k_fukui@highway.ne.jp
>>Release: unknown-1.0
>>Organization:
>>Environment:
> linuxppc,gcc-3.0.4preCVS,binutils-2.11.93
>>Description:
> This bug is for long times.
> libstdc++-v3/include/bits/stl_alloc.h:288: static _Obj* __STL_VOLATILE _S_free_list[];
>
> libstdc++-v3/include/bits/stl_config.h:554:# define __STL_VOLATILE volatile
>
Here is My patch.
Is it right?
I have passed this problem with the patch.
Kaoru
diff -urN base/libstdc++-v3/include/Makefile.in fixed/libstdc++-v3/include/Makefile.in
--- base/libstdc++-v3/include/Makefile.in Thu Jan 17 08:39:41 2002
+++ fixed/libstdc++-v3/include/Makefile.in Wed Feb 6 09:39:19 2002
@@ -195,6 +195,7 @@
${bits_srcdir}/stl_algobase.h \
${bits_srcdir}/stl_alloc.h \
${bits_srcdir}/stl_bvector.h \
+ ${bits_srcdir}/stl_config.h \
${bits_srcdir}/stl_construct.h \
${bits_srcdir}/stl_deque.h \
${bits_srcdir}/stl_function.h \
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
More information about the Gcc
mailing list