This is the mail archive of the
libstdc++-prs@sources.redhat.com
mailing list for the libstdc++ project.
libstdc++/79: valarray badly broken
- To: libstdc++-gnats at sourceware dot cygnus dot com
- Subject: libstdc++/79: valarray badly broken
- From: nicholas dot walker at desy dot de
- Date: 31 Jul 2000 13:33:55 -0000
- Reply-To: nicholas dot walker at desy dot de
- Resent-Cc: libstdc++-prs at sourceware dot cygnus dot com
- Resent-Reply-To: libstdc++-gnats@sourceware.cygnus.com, nicholas.walker@desy.de
>Number: 79
>Category: libstdc++
>Synopsis: valarray badly broken
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 31 06:37:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Nick Walker
>Release: stdlibc++-2.90.8
>Organization:
>Environment:
SUN sparc solaris 2.7
>Description:
copy constructor fails when using slice_array
test code:
int main()
{
std::valarray<double> a(10);
std::valarray<double> b(a[std::slice(0,3,3)]); // bug
...
}
when compiled with gcc 2.95.2, I get the following error message:
/solar/solar04/x01/njwalker/GCC/include/g++-v3/bits/std_valarray.h: In method `valarray<double>::valarray(const slice_array<double> &)':
valarray.cc:12: instantiated from here
/solar/solar04/x01/njwalker/GCC/include/g++-v3/bits/std_valarray.h:295: no matching function for call to `__valarray_copy_construct (const _Array<double> &, const size_t &, const size_t &, _Array<double>)'
Compilation exited abnormally with code 1 at Mon Jul 31 15:16:22
>How-To-Repeat:
see description.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: