[Bug libstdc++/14253] New: problems with global slices and valarrays (regression)
schmid at snake dot iap dot physik dot tu-darmstadt dot de
gcc-bugzilla@gcc.gnu.org
Mon Feb 23 07:22:00 GMT 2004
The global slices facility of valarrays does no longer work. gcc 3.3 and earlier
version of gcc 3.4 had no problems compiling the following code gs.C. I
appologize if this code is rejected due to a change or my misunderstanding of
the standard.
source code gs.C
#include <valarray>
using namespace std;
int main()
{
valarray<double> va(24);
for (int i=0; i<24; i++) {
va[i] = i;
}
size_t lv[] = { 2, 3 };
size_t sv[] = { 12, 3 };
valarray<size_t> l(lv,2);
valarray<size_t> s(sv,2);
va[gslice(0,l,s)] = valarray<double>(va[gslice(1,l,s)]);
}
g++ -v -W -Wall gs.C -save-temps
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ../gcc/configure --enable-threads=posix
--enable-languages=c,c++,f77,objc --enable-__cxa_atexit --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.0 20040221 (prerelease)
/usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -E -quiet -v
-D_GNU_SOURCE gs.C -mtune=pentiumpro -W -Wall -o gs.ii
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/i686-pc-linux-gnu
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/backward
/usr/local/include
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include
/usr/include
End of search list.
/usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -fpreprocessed gs.ii
-quiet -dumpbase gs.C -mtune=pentiumpro -auxbase gs -W -Wall -version -o gs.s
GNU C++ version 3.4.0 20040221 (prerelease) (i686-pc-linux-gnu)
compiled by GNU C version 3.4.0 20040221 (prerelease).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64274
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/gslice_array.h:
In function `int main()':
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/gslice_array.h:142:
error: `std::gslice_array<_Tp>::gslice_array(const std::gslice_array<_Tp>&)
[with _Tp = double]' is private
gs.C:18: error: within this context
No propressed source code attached due to space limitations.
--
Summary: problems with global slices and valarrays (regression)
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P1
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schmid at snake dot iap dot physik dot tu-darmstadt dot
de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14253
More information about the Gcc-bugs
mailing list