public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: bkoz@gnu.org To: gcc-gnats@gcc.gnu.org Subject: libstdc++/3247: valarray private member Date: Mon, 18 Jun 2001 23:56:00 -0000 [thread overview] Message-ID: <20010619065304.20415.qmail@sourceware.cygnus.com> (raw) >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:
next reply other threads:[~2001-06-18 23:56 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-06-18 23:56 bkoz [this message] 2001-06-26 17:14 bkoz 2003-02-19 15:06 Steven Bosscher 2003-02-19 15:56 Gabriel Dos Reis
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010619065304.20415.qmail@sourceware.cygnus.com \ --to=bkoz@gnu.org \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).