public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/7491: Problems with valarrays (slices and gslices)
@ 2002-08-04 16:16 Gabriel Dos Reis
  0 siblings, 0 replies; 4+ messages in thread
From: Gabriel Dos Reis @ 2002-08-04 16:16 UTC (permalink / raw)
  To: gdr; +Cc: gcc-prs

The following reply was made to PR libstdc++/7491; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/7491: Problems with valarrays (slices and gslices)
Date: 05 Aug 2002 01:06:34 +0200

 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> writes:
 
 [...]
 
 | There are problems with valarrays. The slice and general slice subset
 | assign operators are missing. The included source code ts.C shows the
 | problem on the main line regarding slices. There are similar problems
 | using general slices. Earlier versions of gcc compile ts.C without
 | a problem.    
 
 Thanks, this is caused by a thinko in recent patches of mine.  Patch
 pending.
 
 -- Gaby


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/7491: Problems with valarrays (slices and gslices)
@ 2002-08-04 19:12 gdr
  0 siblings, 0 replies; 4+ messages in thread
From: gdr @ 2002-08-04 19:12 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gdr, schmid

Synopsis: Problems with valarrays (slices and gslices)

State-Changed-From-To: analyzed->closed
State-Changed-By: gdr
State-Changed-When: Sun Aug  4 19:12:25 2002
State-Changed-Why:
    Fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7491


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/7491: Problems with valarrays (slices and gslices)
@ 2002-08-04 16:10 gdr
  0 siblings, 0 replies; 4+ messages in thread
From: gdr @ 2002-08-04 16:10 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gdr, nobody, schmid

Synopsis: Problems with valarrays (slices and gslices)

Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Sun Aug  4 16:10:10 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->analyzed
State-Changed-By: gdr
State-Changed-When: Sun Aug  4 16:10:10 2002
State-Changed-Why:
    Analyzed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7491


^ permalink raw reply	[flat|nested] 4+ messages in thread

* libstdc++/7491: Problems with valarrays (slices and gslices)
@ 2002-08-04 15:46 Peter Schmid
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Schmid @ 2002-08-04 15:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7491
>Category:       libstdc++
>Synopsis:       Problems with valarrays (slices and gslices)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 04 15:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Peter Schmid
>Release:        3.3 20020804 (experimental)
>Organization:
TU Darmstadt
>Environment:
System: Linux kiste 2.4.18 #8 Sat Mar 9 15:33:15 CET 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-languages=c,c++,f77,objc
>Description:
There are problems with valarrays. The slice and general slice subset
assign operators are missing. The included source code ts.C shows the
problem on the main line regarding slices. There are similar problems
using general slices. Earlier versions of gcc compile ts.C without
a problem.    

#include <valarray>

int main()
{
  using namespace std;
  valarray<int> va(12);
  for (int i=0; i<12; i++) 
    va[i] = i+1;

  valarray<int> vb(va[slice(2,4,0)]);
  va[slice(2,4,3)] += vb;
  va[slice(2,4,3)] -= vb;
  va[slice(2,4,3)] *= vb;
  va[slice(2,4,3)] /= vb;
  va[slice(2,4,3)] %= vb;
  va[slice(2,4,3)] ^= vb;
  va[slice(2,4,3)] &= vb;
  va[slice(2,4,3)] |= vb;
  va[slice(2,4,3)] <<= vb;
  va[slice(2,4,3)] >>= vb;
}

Compiling ts.C
g++ -v -o ts ts.C -W -Wall 
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-languages=c,c++,f77,objc
Thread model: posix
gcc version 3.3 20020804 (experimental)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE ts.C -D__GNUG__=3 -quiet -dumpbase ts.C -W -Wall -version -o /tmp/ccp5pnrg.s
GNU C++ version 3.3 20020804 (experimental) (i686-pc-linux-gnu)
	compiled by GNU C version 3.3 20020804 (experimental).
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include/c++/3.3
 /usr/local/include/c++/3.3/i686-pc-linux-gnu
 /usr/local/include/c++/3.3/backward
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/include
 /usr/include
End of search list.
/usr/local/include/c++/3.3/bits/slice_array.h: In member function `void 
   std::slice_array<_Tp>::operator+=(const std::valarray<_Tp>&) const [with _Tp 
   = int]':
ts.C:11:   instantiated from here
/usr/local/include/c++/3.3/bits/slice_array.h:200: error: `
   _Array_augmented_plus' undeclared (first use this function)
/usr/local/include/c++/3.3/bits/slice_array.h:200: error: (Each undeclared 
   identifier is reported only once for each function it appears in.)
/usr/local/include/c++/3.3/bits/slice_array.h: In member function `void 
   std::slice_array<_Tp>::operator-=(const std::valarray<_Tp>&) const [with _Tp 
   = int]':
ts.C:12:   instantiated from here
/usr/local/include/c++/3.3/bits/slice_array.h:201: error: `
   _Array_augmented_minus' undeclared (first use this function)
/usr/local/include/c++/3.3/bits/slice_array.h: In member function `void 
   std::slice_array<_Tp>::operator*=(const std::valarray<_Tp>&) const [with _Tp 
   = int]':
ts.C:13:   instantiated from here
/usr/local/include/c++/3.3/bits/slice_array.h:197: error: `
   _Array_augmented_multiplies' undeclared (first use this function)
/usr/local/include/c++/3.3/bits/slice_array.h: In member function `void 
   std::slice_array<_Tp>::operator/=(const std::valarray<_Tp>&) const [with _Tp 
   = int]':
ts.C:14:   instantiated from here
/usr/local/include/c++/3.3/bits/slice_array.h:198: error: `
   _Array_augmented_divides' undeclared (first use this function)
/usr/local/include/c++/3.3/bits/slice_array.h: In member function `void 
   std::slice_array<_Tp>::operator%=(const std::valarray<_Tp>&) const [with _Tp 
   = int]':
ts.C:15:   instantiated from here
/usr/local/include/c++/3.3/bits/slice_array.h:199: error: `
   _Array_augmented_modulus' undeclared (first use this function)
/usr/local/include/c++/3.3/bits/slice_array.h: In member function `void 
   std::slice_array<_Tp>::operator^=(const std::valarray<_Tp>&) const [with _Tp 
   = int]':
ts.C:16:   instantiated from here
/usr/local/include/c++/3.3/bits/slice_array.h:202: error: `_Array_augmented_xor
   ' undeclared (first use this function)
/usr/local/include/c++/3.3/bits/slice_array.h: In member function `void 
   std::slice_array<_Tp>::operator&=(const std::valarray<_Tp>&) const [with _Tp 
   = int]':
ts.C:17:   instantiated from here
/usr/local/include/c++/3.3/bits/slice_array.h:203: error: `_Array_augmented_and
   ' undeclared (first use this function)
/usr/local/include/c++/3.3/bits/slice_array.h: In member function `void 
   std::slice_array<_Tp>::operator|=(const std::valarray<_Tp>&) const [with _Tp 
   = int]':
ts.C:18:   instantiated from here
/usr/local/include/c++/3.3/bits/slice_array.h:204: error: `_Array_augmented_or' 
   undeclared (first use this function)
/usr/local/include/c++/3.3/bits/slice_array.h: In member function `void 
   std::slice_array<_Tp>::operator<<=(const std::valarray<_Tp>&) const [with 
   _Tp = int]':
ts.C:19:   instantiated from here
/usr/local/include/c++/3.3/bits/slice_array.h:205: error: `
   _Array_augmented_shift_left' undeclared (first use this function)
/usr/local/include/c++/3.3/bits/slice_array.h: In member function `void 
   std::slice_array<_Tp>::operator>>=(const std::valarray<_Tp>&) const [with 
   _Tp = int]':
ts.C:20:   instantiated from here
/usr/local/include/c++/3.3/bits/slice_array.h:206: error: `
   _Array_augmented_shift_right' undeclared (first use this function)

>How-To-Repeat:

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-05  2:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-04 16:16 libstdc++/7491: Problems with valarrays (slices and gslices) Gabriel Dos Reis
  -- strict thread matches above, loose matches on Subject: below --
2002-08-04 19:12 gdr
2002-08-04 16:10 gdr
2002-08-04 15:46 Peter Schmid

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