public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/58729] New: tr2::dynamic_bitset::resize fails
@ 2013-10-14 21:01 kwbent at uab dot edu
  2013-10-14 21:04 ` [Bug libstdc++/58729] " kwbent at uab dot edu
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: kwbent at uab dot edu @ 2013-10-14 21:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58729
           Summary: tr2::dynamic_bitset::resize fails
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kwbent at uab dot edu

Created attachment 31004
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31004&action=edit
output from compilation

using g++ (Debian 4.8.1-10) 4.8.1
Debian testing x64

I've been investigating the dynamic_bitset part of the tr2 specification.  I've
used boost's dynamic bitset, so I was basing the functionality from that. 
Either I'm using the resize function wrongly, or it's failing to set the bits
as indicated.

When using the resize(number of bits, value), the resize seems to work fine,
but the value is ignored.  I started to dig around; the resize function is
defined as this in the header <tr2/dynamic_bitset>

      void
      resize(size_type __nbits, bool __value = false)
      {
    this->_M_resize(__nbits, __value);
    this->_M_Nb = __nbits;
    this->_M_do_sanitize();
      }

Is the value being defaulted to false, regardless of the input?  The actual
main() is at the end of the main.ii file.  Another oddity is that this will not
compile from the command line, but will from inside netbeans where I code, even
with Wall and Wextra specified.

If more info is needed, I'll oblige.


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

end of thread, other threads:[~2013-10-26 16:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-14 21:01 [Bug libstdc++/58729] New: tr2::dynamic_bitset::resize fails kwbent at uab dot edu
2013-10-14 21:04 ` [Bug libstdc++/58729] " kwbent at uab dot edu
2013-10-14 21:05 ` kwbent at uab dot edu
2013-10-14 21:09 ` kwbent at uab dot edu
2013-10-14 21:14 ` paolo.carlini at oracle dot com
2013-10-15  0:48 ` 3dw4rd at verizon dot net
2013-10-16 11:31 ` 3dw4rd at verizon dot net
2013-10-16 11:49 ` redi at gcc dot gnu.org
2013-10-16 11:57 ` paolo.carlini at oracle dot com
2013-10-16 12:33 ` redi at gcc dot gnu.org
2013-10-16 12:53 ` 3dw4rd at verizon dot net
2013-10-16 13:08 ` paolo.carlini at oracle dot com
2013-10-16 13:24 ` paolo.carlini at oracle dot com
2013-10-19  1:31 ` emsr at gcc dot gnu.org
2013-10-19 21:35 ` 3dw4rd at verizon dot net
2013-10-21 13:52 ` emsr at gcc dot gnu.org
2013-10-21 13:57 ` paolo.carlini at oracle dot com
2013-10-26 16:13 ` redi at gcc dot gnu.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).