[Bug libstdc++/70080] New: gslice_array's copy constructor doesn't work correctly

2016-03-04 Thread doetoe at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70080

Bug ID: 70080
   Summary: gslice_array's copy constructor doesn't work correctly
   Product: gcc
   Version: 4.9.2
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: libstdc++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doetoe at gmail dot com
  Target Milestone: ---

Created attachment 37865
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37865&action=edit
Code illustrating the bug

In C++11 the gslice_array class has a copy constructor. It looks like the copy
always references all elements of the original gslice_array, except for the
first element, which seems to always point to the first element of the original
valarray.
I had the same error compiling with clang++ 3.6 and g++ 4.9.2.

[Bug libstdc++/70080] gslice_array's copy constructor doesn't work correctly

2016-03-04 Thread doetoe at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70080

Doetoe  changed:

   What|Removed |Added

   Severity|major   |normal