This is the mail archive of the libstdc++-prs@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++/79: valarray badly broken



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]