public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/3247: valarray private member
@ 2001-06-26 17:14 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-06-26 17:14 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-prs, gdr, nobody

Synopsis: valarray private member

Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: bkoz
Responsible-Changed-When: Tue Jun 26 17:14:18 2001
Responsible-Changed-Why:
    Gaby I'm assigning this to you.
    
    AFAIK, this class of bugs in 
    gslice_array
    mask_array
    indirect_array
    
    represent the only valid code that I cannot compile with g++/libstdc++.
    
    Any thoughts on fixing this? I'm not quite sure what the deal is: is this a problem with the standard, or what? Other libraries don't have problems with this kind of code.
    
    
    -benjamin

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3247&database=gcc


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

* Re: libstdc++/3247: valarray private member
@ 2003-02-19 15:56 Gabriel Dos Reis
  0 siblings, 0 replies; 4+ messages in thread
From: Gabriel Dos Reis @ 2003-02-19 15:56 UTC (permalink / raw)
  To: gdr; +Cc: gcc-prs

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

From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: Steven Bosscher <s.bosscher@student.tudelft.nl>
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, bkoz@gnu.org,
   gcc-prs@gcc.gnu.org
Subject: Re: libstdc++/3247: valarray private member
Date: 19 Feb 2003 16:46:32 +0100

 Steven Bosscher <s.bosscher@student.tudelft.nl> writes:
 
 | http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3247
 | 
 | Last modified in June 2001.  Any news?
 
 Yes, someone (me) needs to fix this.
 
 -- Gaby


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

* Re: libstdc++/3247: valarray private member
@ 2003-02-19 15:06 Steven Bosscher
  0 siblings, 0 replies; 4+ messages in thread
From: Steven Bosscher @ 2003-02-19 15:06 UTC (permalink / raw)
  To: gdr; +Cc: gcc-prs

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

From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gdr@gcc.gnu.org,
	bkoz@gnu.org, gcc-prs@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/3247: valarray private member
Date: Wed, 19 Feb 2003 16:01:44 +0100

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3247
 
 Last modified in June 2001.  Any news?
 


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

* libstdc++/3247: valarray private member
@ 2001-06-18 23:56 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-06-18 23:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3247
>Category:       libstdc++
>Synopsis:       valarray private member
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 18 23:56:06 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     benjamin kosnik
>Release:        gcc-3.0, current cvs
>Organization:
>Environment:
x86/linux
>Description:
Compiling the sources below gives:

%COMP.sh per02.cc 
/mnt/hd/src/src.gcc/libstdc++-v3/include/bits/gslice_array.h: In function `int 
   main()':
/mnt/hd/src/src.gcc/libstdc++-v3/include/bits/gslice_array.h:106: `std::gslice_array<_Tp>::gslice_array(const
   std::gslice_array<_Tp>&) [with _Tp = double]' is private
per02.cc:19: within this context
per02.cc:19:   initializing argument 3 of `void gnu_operator(T1, Param1, 
   Param2) [with T1 = double, Param1 = std::valarray<double>, Param2 = 
   std::gslice_array<double>]'
/mnt/hd/src/src.gcc/libstdc++-v3/include/bits/mask_array.h:100: `std::mask_array<_Tp>::mask_array(const
   std::mask_array<_Tp>&) [with _Tp = double]' is private
per02.cc:20: within this context
per02.cc:20:   initializing argument 3 of `void gnu_operator(T1, Param1, 
   Param2) [with T1 = double, Param1 = std::valarray<double>, Param2 = 
   std::mask_array<double>]'
/mnt/hd/src/src.gcc/libstdc++-v3/include/bits/indirect_array.h:99: `std::indirect_array<_Tp>::indirect_array(const
   std::indirect_array<_Tp>&) [with _Tp = double]' is private
per02.cc:21: within this context
per02.cc:21:   initializing argument 3 of `void gnu_operator(T1, Param1, 
   Param2) [with T1 = double, Param1 = std::valarray<double>, Param2 = 
   std::indirect_array<double>]'
>How-To-Repeat:
#include <cstddef>
#include <valarray>

template <typename T1, typename Param1, class Param2> 
  void gnu_operator(T1, Param1 p1, Param2 p2)
  { std::operator*<T1>(p1, p2); }

int main()
{
  double dvar = 1.0;
  std::valarray<double> val_d;
  std::slice slc;
  std::gslice gslc;
  std::valarray<bool> val_b;
  std::valarray<std::size_t> val_sizet;

  gnu_operator(dvar, val_d, val_d);
  gnu_operator(dvar, val_d, val_d[slc]);
  gnu_operator(dvar, val_d, val_d[gslc]);
  gnu_operator(dvar, val_d, val_d[val_b]);
  gnu_operator(dvar, val_d, val_d[val_sizet]);
  
  // and so on...
  gnu_operator(dvar, val_d[slc], val_d[slc]);

  return 0;
};
>Fix:

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


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

end of thread, other threads:[~2003-02-19 15:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-26 17:14 libstdc++/3247: valarray private member bkoz
  -- strict thread matches above, loose matches on Subject: below --
2003-02-19 15:56 Gabriel Dos Reis
2003-02-19 15:06 Steven Bosscher
2001-06-18 23:56 bkoz

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