public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: valarray
@ 1999-04-23 14:05 Jason Molenda
  1999-04-30 23:15 ` valarray Jason Molenda
  0 siblings, 1 reply; 12+ messages in thread
From: Jason Molenda @ 1999-04-23 14:05 UTC (permalink / raw)
  To: egcs, egcs-bugs

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 <Gabriel.Dos-Reis@cmla.ens-cachan.fr>
In-Reply-To: benjamin kosnik's message of "Mon, 19 Apr 1999 06:29:54 +0000"

benjamin kosnik <bkoz@nabi.net> 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<template<class> 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 -----

^ permalink raw reply	[flat|nested] 12+ messages in thread
* valarray
@ 1998-11-08  6:43 Tobias Naehring
  1998-11-09  7:21 ` valarray Gabriel Dos Reis
  0 siblings, 1 reply; 12+ messages in thread
From: Tobias Naehring @ 1998-11-08  6:43 UTC (permalink / raw)
  To: egcs

When will ***valarray*** become part of egcs???

Best regards,
Tobias N"ahring

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <199805081913.MAA19580.cygnus.egcs@kankakee.wrs.com>]
* Re: valarray
@ 1998-05-08 12:13 Mike Stump
  0 siblings, 0 replies; 12+ messages in thread
From: Mike Stump @ 1998-05-08 12:13 UTC (permalink / raw)
  To: Gabriel.Dos-Reis; +Cc: egcs

> Date: Thu, 7 May 1998 03:12:00 +0200 (MET DST)
> Cc: egcs mailing list <egcs@cygnus.com>
> From: Gabriel Dos Reis <Gabriel.Dos-Reis@dptmaths.ens-cachan.fr>

> Jochen> is there anything like the valarray templates with egcs.

> Actually I submitted a (almost) complete implementation, but you
> have to wait since it wasn't fully tested on all plaforms supported
> by egcs. It will be included in the newly rewritten libstdc++. I
> don't know when.

It is a sad state of affairs when people donate code, and we still
have nothing.  Is there a reason why we don't have the newer classes
yet?  I think we have talked about it before, but I don't now recall
what reason there may have been to not put it in.

If more work needs to be done on it to finish the work, drop it in,
and we can all work on it.

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: valarray
@ 1998-05-07  5:15 Jochen.K
  0 siblings, 0 replies; 12+ messages in thread
From: Jochen.K @ 1998-05-07  5:15 UTC (permalink / raw)
  To: egcs mailing list

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

On Thu, 07 May 1998, Gabriel Dos Reis wrote:
>>>>>> «Jochen», Jochen K"upper <jochen@uni-duesseldorf.de> wrote:

>There is an approximation written by Daveed Vandervood in the
>past. You should be able to get it somewhere on the net. Be aware that
>Daveed no longer maintains it.

Found it at ftp://ftp.cs.rpi.edu/pub/vandevod/Valarray/Rel2_0Beta2/

Thanks,
Jochen

--
-----------------------------------------------------------------------
  Jochen K"upper

  Heinrich-Heine-Universit"at D"usseldorf   jochen@uni-duesseldorf.de
  Institut f"ur Physikalische Chemie I
  Universit"atsstr. 1, Geb 26.43 Raum 02.29    phone ++49-211-8113681
  40225 D"usseldorf                            fax   ++49-211-8115195
  Germany             http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 12+ messages in thread
* valarray
@ 1998-05-06  2:02 Jochen.K
  1998-05-06 23:49 ` valarray Gabriel Dos Reis
       [not found] ` <199805070112.DAA16347.cygnus.egcs@piano.dptmaths.ens-cachan.fr>
  0 siblings, 2 replies; 12+ messages in thread
From: Jochen.K @ 1998-05-06  2:02 UTC (permalink / raw)
  To: egcs mailing list

Dear All,

is there anything like the valarray templates with egcs. I did not find it when
looking through the header files.

As I understand from other sources (like Stroustrups The C++ Programming
Language) this is part of the standard library.

If there is no implementation with egcs, do you know any free implementations of
that conzept ?

Thanks you,
Jochen

--
-----------------------------------------------------------------------
  Jochen K"upper

  Heinrich-Heine-Universit"at D"usseldorf   jochen@uni-duesseldorf.de
  Institut f"ur Physikalische Chemie I
  Universit"atsstr. 1, Geb 26.43 Raum 02.29    phone ++49-211-8113681
  40225 D"usseldorf                            fax   ++49-211-8115195
  Germany             http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1999-04-30 23:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-23 14:05 valarray Jason Molenda
1999-04-30 23:15 ` valarray Jason Molenda
  -- strict thread matches above, loose matches on Subject: below --
1998-11-08  6:43 valarray Tobias Naehring
1998-11-09  7:21 ` valarray Gabriel Dos Reis
     [not found] <199805081913.MAA19580.cygnus.egcs@kankakee.wrs.com>
1998-05-08 16:04 ` valarray Ulrich Drepper
1998-05-08 12:13 valarray Mike Stump
1998-05-07  5:15 valarray Jochen.K
1998-05-06  2:02 valarray Jochen.K
1998-05-06 23:49 ` valarray Gabriel Dos Reis
     [not found] ` <199805070112.DAA16347.cygnus.egcs@piano.dptmaths.ens-cachan.fr>
1998-05-08  0:54   ` valarray Nathan Myers
1998-05-08 19:52     ` valarray Gabriel Dos Reis
     [not found]       ` <355392BA.21A86073@cislunar.com>
1998-05-10  6:17         ` valarray Gabriel Dos Reis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).