This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/15154] [3.3 Regression] Lib doesn't provide implementations for some bitset extensions
- From: "gdr at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2004 23:40:44 -0000
- Subject: [Bug libstdc++/15154] [3.3 Regression] Lib doesn't provide implementations for some bitset extensions
- References: <20040426195354.15154.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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