public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marc.glisse at normalesup dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/51823] reverse iterator instantiated with POD type returns uninitialized values + work around Date: Wed, 11 Jan 2012 15:17:00 -0000 [thread overview] Message-ID: <bug-51823-4-Dq8MW5CJm8@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-51823-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51823 --- Comment #7 from Marc Glisse <marc.glisse at normalesup dot org> 2012-01-11 15:16:58 UTC --- Paolo started a discussion on this: http://gcc.gnu.org/ml/libstdc++/2003-11/msg00089.html but apparently the code wasn't changed. It is really sad that in most cases the size of reverse_iterator is needlessly doubled just so some rare fancy iterators can use it. And other fancy uses prevent from using a global instead (even a tls). For the special case of a Iota_iterator, when the C++ iterator concept is eventually fixed (or for people who decide to ignore the requirement that reference be a reference), reference should be int, not int const&, so operator* would return by value.
next prev parent reply other threads:[~2012-01-11 15:17 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-01-11 12:58 [Bug libstdc++/51823] New: " jakobsybren at gmail dot com 2012-01-11 13:16 ` [Bug libstdc++/51823] " redi at gcc dot gnu.org 2012-01-11 13:40 ` jakobsybren at gmail dot com 2012-01-11 13:56 ` redi at gcc dot gnu.org 2012-01-11 14:08 ` redi at gcc dot gnu.org 2012-01-11 14:19 ` redi at gcc dot gnu.org 2012-01-11 14:37 ` redi at gcc dot gnu.org 2012-01-11 15:17 ` marc.glisse at normalesup dot org [this message] 2012-01-11 15:26 ` [Bug libstdc++/51823] [DR 198] reverse iterator returns uninitialized values redi at gcc dot gnu.org 2012-01-11 15:48 ` marc.glisse at normalesup dot org 2012-01-11 15:59 ` redi at gcc dot gnu.org 2012-01-14 16:38 ` redi at gcc dot gnu.org 2012-08-22 19:19 ` redi at gcc dot gnu.org 2012-10-30 23:49 ` dave at boostpro dot com 2012-10-31 0:37 ` redi at gcc dot gnu.org 2012-12-13 12:24 ` [Bug libstdc++/51823] [DR 198] [DR 2204] " redi at gcc dot gnu.org 2012-12-14 16:35 ` dave at boostpro dot com 2014-02-19 21:02 ` redi at gcc dot gnu.org
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=bug-51823-4-Dq8MW5CJm8@http.gcc.gnu.org/bugzilla/ \ --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).