From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Molenda To: egcs@egcs.cygnus.com, egcs-bugs@egcs.cygnus.com Subject: Re: valarray Date: Fri, 23 Apr 1999 14:05:00 -0000 Message-id: <19990423140503.C28759@cygnus.com> X-SW-Source: 1999-04/msg00819.html Gabriel Dos Reis' mail system is having a little trouble contacting egcs, he asked me to forward this note on for him. ----- Forwarded message ----- To: bkoz@nabi.net Cc: Gabriel.Dos-Reis@cmla.ens-cachan.fr, egcs@egcs.cygnus.com, egcs-bugs@egcs.cygnus.com Subject: Re: valarray References: <371ACD62.68C7A607@nabi.net> From: Gabriel Dos Reis In-Reply-To: benjamin kosnik's message of "Mon, 19 Apr 1999 06:29:54 +0000" benjamin kosnik writes: | Hey Gaby, this is for when you get back so don't worry. | | I've been working on trying to run the testsuite with -02, etc and making | sure all the required instantiations are there, etc. | | I get a bunch of warnings for valarray: | | lArray,_Constant,_Tp,_Tp>::_Tp' from dependent base class | ../bits/valarray_meta.h:487: warning: (use `typename _BinClos::_Tp' if | that's what you meant) | ../bits/valarray_meta.h:487: warning: lookup of `_Tp' finds `class _Tp' | ../bits/valarray_meta.h:487: warning: instead of `typename | _BinClos<_Oper,_ValArray,_Constant,_Tp,_Tp>::_Tp' from dependent base class | ../bits/valarray_meta.h:487: warning: (use `typename _BinClos::_Tp' if | that's what you meant) | ../bits/valarray_meta.h:494: warning: lookup of `_Tp' finds `class _Tp' | ../bits/valarray_meta.h:494: warning: instead of `typename | _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class | ../bits/valarray_meta.h:494: warning: (use `typename _BinClos::_Tp' if | that's what you meant) | ../bits/valarray_meta.h:497: warning: lookup of `_Tp' finds `class _Tp' | ../bits/valarray_meta.h:497: warning: instead of `typename | _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class | ../bits/valarray_meta.h:497: warning: (use `typename _BinClos::_Tp' if | that's what you meant) | ../bits/valarray_meta.h:497: warning: lookup of `_Tp' finds `class _Tp' | ../bits/valarray_meta.h:497: warning: instead of `typename | _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class | ../bits/valarray_meta.h:497: warning: (use `typename _BinClos::_Tp' if | that's what you meant) | | | etc etc etc--you might want to check into this when you get a chance. Hi Benjamin! The problem is in the C++ front end, and the error message is bogus [cf. 14.6.1/3]: _Tp is a template parameter as you can see from libstdc++/bits/valarray_meta.h: // --line 480 template class _Oper, typename _Tp> struct _BinClos<_Oper,_ValArray,_Constant,_Tp,_Tp> : _BinBase2<_Oper,valarray<_Tp> > { typedef _BinBase2<_Oper,valarray<_Tp> > _Base; typedef typename _Base::value_type value_type; _BinClos (const valarray<_Tp>& __v, const _Tp& __t) // <=== : _Base (__v, __t) {} }; // --line 490 That compiler bug should be fixed before egcs-1.2 gets out. IIRC it wasn't present in egcs-2.93.15 | Also, I noticed that TNT, from the link on the main web page, uses both | stringstreams and valarray, so I may try to get it up and running as part | of the testing framework. I'll let you know how it goes. Sounds great. -- Gaby ----- End forwarded message ----- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Molenda To: egcs@egcs.cygnus.com, egcs-bugs@egcs.cygnus.com Subject: Re: valarray Date: Fri, 30 Apr 1999 23:15:00 -0000 Message-ID: <19990423140503.C28759@cygnus.com> X-SW-Source: 1999-04n/msg00825.html Message-ID: <19990430231500.C84LJL5BJY43A1BiKsYY4Iv125Jj6rRXyLE68LoDj0E@z> Gabriel Dos Reis' mail system is having a little trouble contacting egcs, he asked me to forward this note on for him. ----- Forwarded message ----- To: bkoz@nabi.net Cc: Gabriel.Dos-Reis@cmla.ens-cachan.fr, egcs@egcs.cygnus.com, egcs-bugs@egcs.cygnus.com Subject: Re: valarray References: <371ACD62.68C7A607@nabi.net> From: Gabriel Dos Reis In-Reply-To: benjamin kosnik's message of "Mon, 19 Apr 1999 06:29:54 +0000" benjamin kosnik writes: | Hey Gaby, this is for when you get back so don't worry. | | I've been working on trying to run the testsuite with -02, etc and making | sure all the required instantiations are there, etc. | | I get a bunch of warnings for valarray: | | lArray,_Constant,_Tp,_Tp>::_Tp' from dependent base class | ../bits/valarray_meta.h:487: warning: (use `typename _BinClos::_Tp' if | that's what you meant) | ../bits/valarray_meta.h:487: warning: lookup of `_Tp' finds `class _Tp' | ../bits/valarray_meta.h:487: warning: instead of `typename | _BinClos<_Oper,_ValArray,_Constant,_Tp,_Tp>::_Tp' from dependent base class | ../bits/valarray_meta.h:487: warning: (use `typename _BinClos::_Tp' if | that's what you meant) | ../bits/valarray_meta.h:494: warning: lookup of `_Tp' finds `class _Tp' | ../bits/valarray_meta.h:494: warning: instead of `typename | _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class | ../bits/valarray_meta.h:494: warning: (use `typename _BinClos::_Tp' if | that's what you meant) | ../bits/valarray_meta.h:497: warning: lookup of `_Tp' finds `class _Tp' | ../bits/valarray_meta.h:497: warning: instead of `typename | _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class | ../bits/valarray_meta.h:497: warning: (use `typename _BinClos::_Tp' if | that's what you meant) | ../bits/valarray_meta.h:497: warning: lookup of `_Tp' finds `class _Tp' | ../bits/valarray_meta.h:497: warning: instead of `typename | _BinClos<_Oper,_Constant,_ValArray,_Tp,_Tp>::_Tp' from dependent base class | ../bits/valarray_meta.h:497: warning: (use `typename _BinClos::_Tp' if | that's what you meant) | | | etc etc etc--you might want to check into this when you get a chance. Hi Benjamin! The problem is in the C++ front end, and the error message is bogus [cf. 14.6.1/3]: _Tp is a template parameter as you can see from libstdc++/bits/valarray_meta.h: // --line 480 template class _Oper, typename _Tp> struct _BinClos<_Oper,_ValArray,_Constant,_Tp,_Tp> : _BinBase2<_Oper,valarray<_Tp> > { typedef _BinBase2<_Oper,valarray<_Tp> > _Base; typedef typename _Base::value_type value_type; _BinClos (const valarray<_Tp>& __v, const _Tp& __t) // <=== : _Base (__v, __t) {} }; // --line 490 That compiler bug should be fixed before egcs-1.2 gets out. IIRC it wasn't present in egcs-2.93.15 | Also, I noticed that TNT, from the link on the main web page, uses both | stringstreams and valarray, so I may try to get it up and running as part | of the testing framework. I'll let you know how it goes. Sounds great. -- Gaby ----- End forwarded message -----