public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ppluzhnikov at charter dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/17875] New: valarray copy-ctor completely broken Date: Thu, 07 Oct 2004 00:53:00 -0000 [thread overview] Message-ID: <20041007005318.17875.ppluzhnikov@charter.net> (raw) The test case below fails assert on all versions of g++ from 2.95.3 through 4.0 (20040919 snapshot), on all platforms. --- cut --- #include <valarray> #include <cassert> int main() { std::valarray<double> v(1); std::valarray<double> r; r = v; assert(r.size() == 1); return 0; } --- cut --- $ /usr/local/gcc-4.0/bin/g++ -g exp2.cpp $ ./a.out a.out: exp2.cpp:14: int main(): Assertion `r.size() == 1' failed. -- Summary: valarray copy-ctor completely broken Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ppluzhnikov at charter dot net 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=17875
next reply other threads:[~2004-10-07 0:53 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-10-07 0:53 ppluzhnikov at charter dot net [this message] 2004-10-07 0:55 ` [Bug libstdc++/17875] " pinskia at gcc dot gnu dot org 2004-10-07 0:56 ` ppluzhnikov at charter dot net 2004-10-07 1:02 ` ppluzhnikov at charter dot net
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=20041007005318.17875.ppluzhnikov@charter.net \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).