public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jason Molenda <jsm@cygnus.com>
To: egcs@egcs.cygnus.com, egcs-bugs@egcs.cygnus.com
Subject: Re: valarray
Date: Fri, 23 Apr 1999 14:05:00 -0000	[thread overview]
Message-ID: <19990423140503.C28759@cygnus.com> (raw)

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 -----

WARNING: multiple messages have this Message-ID
From: Jason Molenda <jsm@cygnus.com>
To: egcs@egcs.cygnus.com, egcs-bugs@egcs.cygnus.com
Subject: Re: valarray
Date: Fri, 30 Apr 1999 23:15:00 -0000	[thread overview]
Message-ID: <19990423140503.C28759@cygnus.com> (raw)
Message-ID: <19990430231500.C84LJL5BJY43A1BiKsYY4Iv125Jj6rRXyLE68LoDj0E@z> (raw)

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 -----

             reply	other threads:[~1999-04-23 14:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-23 14:05 Jason Molenda [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19990423140503.C28759@cygnus.com \
    --to=jsm@cygnus.com \
    --cc=egcs-bugs@egcs.cygnus.com \
    --cc=egcs@egcs.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).