This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

re:[PATCH] Fix libstdc++ usage of __ctype_b/__ctype_to* (take 2)


On  9 Sep, Jeff Chua wrote:
> 
> Still can't get gcc to compile. Same failure. Anymore suggestion?
> 
> I got the gcc cvs from the "cvs -z9 co -rgcc-3_2-branch -d gcc-3.2.1 gcc"
>> /v6/src2/gcc-3.2.1/obj/i586-pc-linux-gnu/libstdc++-v3/include/i586-pc-linux-gnu/bits/ctype_noninline.h:107:
>> redefinition
>>    of `std::ctype<char>::ctype(int*, const short unsigned int*, bool, unsigned int)'
>> /v6/src2/gcc-3.2.1/obj/i586-pc-linux-gnu/libstdc++-v3/include/i586-pc-linux-gnu/bits/ctype_noninline.h:76:
>>    std::ctype<char>::ctype(int*, const short unsigned int* = 0, bool = false, unsigned int = 0)' previously defined here
>> /v6/src2/gcc-3.2.1/obj/i586-pc-linux-gnu/libstdc++-v3/include/i586-pc-linux-gnu/bits/ctype_noninline.h:107:

I looked line 76,line 107 in current gcc source.

  ctype<char>::ctype(__c_locale, const mask* __table, bool __del, 
		     size_t __refs) 
  : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del)  <<<-----line 76

  ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) : 
  __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del)
  {                                                                      <<<------line 107

Those prototypes are differrent.
I don't look same one.
First is
ctype<char>::ctype(__c_locale,
Second is
ctype<char>::ctype(const mask*

C++ can look the difference.
Sorry don't help.

Kaoru
--------------------




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]