public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/15154] New: Lib doesn't provide implementations for some bitset extensions
@ 2004-04-26 19:56 igodard at pacbell dot net
  2004-04-26 20:40 ` [Bug libstdc++/15154] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: igodard at pacbell dot net @ 2004-04-26 19:56 UTC (permalink / raw)
  To: gcc-bugs

Gnu libstdc++ "bitset" supports extensions inherited from SGI, including the pseudo-iterators _Find_first and _Find_next. The library provides inplementations for these in the general case. However, bitset is specialized for the case where the entire set fits in a machine word (i.e. _base_bitset<1>) and the source does *not* provide _Find_first and _Find_next for those.

Thus:
#include

-- 
           Summary: Lib doesn't provide implementations for some bitset
                    extensions
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug libstdc++/15154] Lib doesn't provide implementations for some bitset extensions
  2004-04-26 19:56 [Bug libstdc++/15154] New: Lib doesn't provide implementations for some bitset extensions igodard at pacbell dot net
@ 2004-04-26 20:40 ` pinskia at gcc dot gnu dot org
  2004-04-26 20:42 ` igodard at pacbell dot net
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-26 20:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-26 19:55 -------
Can you attach the source?

-- 


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


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

* [Bug libstdc++/15154] Lib doesn't provide implementations for some bitset extensions
  2004-04-26 19:56 [Bug libstdc++/15154] New: Lib doesn't provide implementations for some bitset extensions igodard at pacbell dot net
  2004-04-26 20:40 ` [Bug libstdc++/15154] " pinskia at gcc dot gnu dot org
@ 2004-04-26 20:42 ` igodard at pacbell dot net
  2004-04-26 22:05 ` [Bug libstdc++/15154] [3.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: igodard at pacbell dot net @ 2004-04-26 20:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From igodard at pacbell dot net  2004-04-26 19:56 -------
Test case (complete this time?):
#include <bitset>
int main() {
   bitset<10> b;
   b._Find_first();
   return 0;
   }

will fail to link.

-- 


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


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

* [Bug libstdc++/15154] [3.3 Regression] Lib doesn't provide implementations for some bitset extensions
  2004-04-26 19:56 [Bug libstdc++/15154] New: Lib doesn't provide implementations for some bitset extensions igodard at pacbell dot net
  2004-04-26 20:40 ` [Bug libstdc++/15154] " pinskia at gcc dot gnu dot org
  2004-04-26 20:42 ` igodard at pacbell dot net
@ 2004-04-26 22:05 ` pinskia at gcc dot gnu dot org
  2004-05-01 23:40 ` gdr at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-26 22:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-26 20:00 -------
Confirmed but only happens in the 3.3 branch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |3.2.3 3.3.3
      Known to work|                            |3.0.4 3.4.0 3.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-26 20:00:42
               date|                            |
            Summary|Lib doesn't provide         |[3.3 Regression] Lib doesn't
                   |implementations for some    |provide implementations for
                   |bitset extensions           |some bitset extensions
   Target Milestone|---                         |3.3.4


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


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

* [Bug libstdc++/15154] [3.3 Regression] Lib doesn't provide implementations for some bitset extensions
  2004-04-26 19:56 [Bug libstdc++/15154] New: Lib doesn't provide implementations for some bitset extensions igodard at pacbell dot net
                   ` (2 preceding siblings ...)
  2004-04-26 22:05 ` [Bug libstdc++/15154] [3.3 Regression] " pinskia at gcc dot gnu dot org
@ 2004-05-01 23:40 ` gdr at gcc dot gnu dot org
  2004-05-01 23:46 ` gdr at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-05-01 23:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-05-01 23:40 -------
(In reply to comment #2)
> Test case (complete this time?):
> #include <bitset>
> int main() {
>    bitset<10> b;
>    b._Find_first();
>    return 0;
>    }
> 
> will fail to link.

Minor nit:  bitset in the testcase should be qualified.

More info: This failure occurs only when the number of "machine word"
needed to represent the bitset is at most 1.  That is if you change
bitset<10> to bitset<100>, then everything should work.

Interestingly, the definition of the incriminated members of
std::_Base_bitset<1> are supplied in libstdc++-v3/src/bitset.cc.
I don't understand why the linker is not finding it.

-- Gaby



-- 


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


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

* [Bug libstdc++/15154] [3.3 Regression] Lib doesn't provide implementations for some bitset extensions
  2004-04-26 19:56 [Bug libstdc++/15154] New: Lib doesn't provide implementations for some bitset extensions igodard at pacbell dot net
                   ` (3 preceding siblings ...)
  2004-05-01 23:40 ` gdr at gcc dot gnu dot org
@ 2004-05-01 23:46 ` gdr at gcc dot gnu dot org
  2004-06-11 22:22 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-05-01 23:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-05-01 23:46 -------
(In reply to comment #4)

> Interestingly, the definition of the incriminated members of
> std::_Base_bitset<1> are supplied in libstdc++-v3/src/bitset.cc.
> I don't understand why the linker is not finding it.

It turns that, on i686-pc-linux-gnu at least, the compiler is emitting
those definitions as if they were static file-scope functions, which
clearly is wrong.

> 
> -- Gaby
> 
> 



-- 


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


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

* [Bug libstdc++/15154] [3.3 Regression] Lib doesn't provide implementations for some bitset extensions
  2004-04-26 19:56 [Bug libstdc++/15154] New: Lib doesn't provide implementations for some bitset extensions igodard at pacbell dot net
                   ` (4 preceding siblings ...)
  2004-05-01 23:46 ` gdr at gcc dot gnu dot org
@ 2004-06-11 22:22 ` pinskia at gcc dot gnu dot org
  2004-09-28 13:38 ` gdr at gcc dot gnu dot org
  2005-04-30 13:40 ` gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-11 22:22 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.4                       |3.3.5


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


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

* [Bug libstdc++/15154] [3.3 Regression] Lib doesn't provide implementations for some bitset extensions
  2004-04-26 19:56 [Bug libstdc++/15154] New: Lib doesn't provide implementations for some bitset extensions igodard at pacbell dot net
                   ` (5 preceding siblings ...)
  2004-06-11 22:22 ` pinskia at gcc dot gnu dot org
@ 2004-09-28 13:38 ` gdr at gcc dot gnu dot org
  2005-04-30 13:40 ` gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-09-28 13:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-09-28 13:31 -------
Adjust milestone

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|3.0.4 3.4.0 4.0             |3.0.4 3.4.0 4.0.0
   Target Milestone|3.3.5                       |3.3.6


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


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

* [Bug libstdc++/15154] [3.3 Regression] Lib doesn't provide implementations for some bitset extensions
  2004-04-26 19:56 [Bug libstdc++/15154] New: Lib doesn't provide implementations for some bitset extensions igodard at pacbell dot net
                   ` (6 preceding siblings ...)
  2004-09-28 13:38 ` gdr at gcc dot gnu dot org
@ 2005-04-30 13:40 ` gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-04-30 13:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2005-04-30 13:40 -------
won't fix for 3.3.6. Works for 3.4.0 and higher

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.3.6                       |3.4.0


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


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

end of thread, other threads:[~2005-04-30 13:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-26 19:56 [Bug libstdc++/15154] New: Lib doesn't provide implementations for some bitset extensions igodard at pacbell dot net
2004-04-26 20:40 ` [Bug libstdc++/15154] " pinskia at gcc dot gnu dot org
2004-04-26 20:42 ` igodard at pacbell dot net
2004-04-26 22:05 ` [Bug libstdc++/15154] [3.3 Regression] " pinskia at gcc dot gnu dot org
2004-05-01 23:40 ` gdr at gcc dot gnu dot org
2004-05-01 23:46 ` gdr at gcc dot gnu dot org
2004-06-11 22:22 ` pinskia at gcc dot gnu dot org
2004-09-28 13:38 ` gdr at gcc dot gnu dot org
2005-04-30 13:40 ` gdr at gcc dot gnu dot 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).