This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/15154] [3.3 Regression] Lib doesn't provide implementations for some bitset extensions


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]