libstdc++ v2 broken

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Mon Jul 17 00:50:00 GMT 2000


"Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de> writes:

| In the current CVS, all C++ tests fail when compiling with
| --enable-shared. This is caused by a missing symbol in libstdc++.so,
| __valarray_product__H1ZUi_PCX01T0_X01. The symbol is not emitted since
| the library is compiled with -O2 -fno-implicit-templates.


Hmm.  Really confused.  When I ran the testsuite, everything went OK
(no additional failure). I can't explain.  Anyway this should fix the
problem.  I'm boostrapping and will commit if everything goes OK.

Thanks,

-- Gaby

Index: valarray_array.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++/std/valarray_array.h,v
retrieving revision 1.4
diff -p -r1.4 valarray_array.h
*** valarray_array.h    2000/07/15 21:54:06     1.4
--- valarray_array.h    2000/07/17 07:46:06
*************** __valarray_copy (const _Tp* __restrict__
*** 281,287 ****
  
    // Compute the product of all elements in range [__f, __l)
    template<typename _Tp>
!   _Tp
    __valarray_product(const _Tp* __restrict__ __f,
                       const _Tp* __restrict__ __l)
    {
--- 281,287 ----
  
    // Compute the product of all elements in range [__f, __l)
    template<typename _Tp>
!   inline _Tp
    __valarray_product(const _Tp* __restrict__ __f,
                       const _Tp* __restrict__ __l)
    {


More information about the Gcc-bugs mailing list