public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/14253] New: problems with global slices and valarrays (regression)
@ 2004-02-23  7:22 schmid at snake dot iap dot physik dot tu-darmstadt dot de
  2004-02-23  7:45 ` [Bug libstdc++/14253] " gdr at integrable-solutions dot net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: schmid at snake dot iap dot physik dot tu-darmstadt dot de @ 2004-02-23  7:22 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug libstdc++/14253] problems with global slices and valarrays (regression)
  2004-02-23  7:22 [Bug libstdc++/14253] New: problems with global slices and valarrays (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
@ 2004-02-23  7:45 ` gdr at integrable-solutions dot net
  2004-02-23 13:18 ` [Bug libstdc++/14253] [3.4/3.5 Regression] problems with global slices and valarrays pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-02-23  7:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at integrable-solutions dot net  2004-02-23 07:45 -------
Subject: Re:  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> writes:

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

This is a consequence of GCC-3.4.0 being stricter about accessibility
and known defect in the standard.  I corrected the standard but failed
to give enough time to correct the V3 implementation.    
The same applies to indirect_array and masked_array.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14253


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

* [Bug libstdc++/14253] [3.4/3.5 Regression] problems with global slices and valarrays
  2004-02-23  7:22 [Bug libstdc++/14253] New: problems with global slices and valarrays (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
  2004-02-23  7:45 ` [Bug libstdc++/14253] " gdr at integrable-solutions dot net
@ 2004-02-23 13:18 ` pinskia at gcc dot gnu dot org
  2004-02-26 17:56 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-23 13:18 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|problems with global slices |[3.4/3.5 Regression]
                   |and valarrays (regression)  |problems with global slices
                   |                            |and valarrays
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14253


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

* [Bug libstdc++/14253] [3.4/3.5 Regression] problems with global slices and valarrays
  2004-02-23  7:22 [Bug libstdc++/14253] New: problems with global slices and valarrays (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
  2004-02-23  7:45 ` [Bug libstdc++/14253] " gdr at integrable-solutions dot net
  2004-02-23 13:18 ` [Bug libstdc++/14253] [3.4/3.5 Regression] problems with global slices and valarrays pinskia at gcc dot gnu dot org
@ 2004-02-26 17:56 ` pinskia at gcc dot gnu dot org
  2004-02-26 20:45 ` gdr at integrable-solutions dot net
  2004-02-26 21:34 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-26 17:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-26 17:56 -------
Confirmed by Gaby.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-26 17:56:46
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14253


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

* [Bug libstdc++/14253] [3.4/3.5 Regression] problems with global slices and valarrays
  2004-02-23  7:22 [Bug libstdc++/14253] New: problems with global slices and valarrays (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
                   ` (2 preceding siblings ...)
  2004-02-26 17:56 ` pinskia at gcc dot gnu dot org
@ 2004-02-26 20:45 ` gdr at integrable-solutions dot net
  2004-02-26 21:34 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-02-26 20:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at integrable-solutions dot net  2004-02-26 20:45 -------
Subject: Re:  [3.4/3.5 Regression] problems with global slices and valarrays

"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| Confirmed by Gaby.

These are duplicates of bugs assigned to me.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14253


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

* [Bug libstdc++/14253] [3.4/3.5 Regression] problems with global slices and valarrays
  2004-02-23  7:22 [Bug libstdc++/14253] New: problems with global slices and valarrays (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
                   ` (3 preceding siblings ...)
  2004-02-26 20:45 ` gdr at integrable-solutions dot net
@ 2004-02-26 21:34 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-26 21:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-26 21:34 -------
This is a dup of bug 3247.

*** This bug has been marked as a duplicate of 3247 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14253


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

end of thread, other threads:[~2004-02-26 21:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23  7:22 [Bug libstdc++/14253] New: problems with global slices and valarrays (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-02-23  7:45 ` [Bug libstdc++/14253] " gdr at integrable-solutions dot net
2004-02-23 13:18 ` [Bug libstdc++/14253] [3.4/3.5 Regression] problems with global slices and valarrays pinskia at gcc dot gnu dot org
2004-02-26 17:56 ` pinskia at gcc dot gnu dot org
2004-02-26 20:45 ` gdr at integrable-solutions dot net
2004-02-26 21:34 ` pinskia at gcc dot gnu dot org

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