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++/42261] infinite recursion from string(string::size_type(6), string::size_type('f'))



------- Comment #3 from paolo at gcc dot gnu dot org  2009-12-03 14:21 -------
Subject: Bug 42261

Author: paolo
Date: Thu Dec  3 14:20:56 2009
New Revision: 154948

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154948
Log:
2009-12-03  Paolo Carlini  <paolo.carlini@oracle.com>

        PR libstdc++/42261
        * include/bits/basic_string.h (_S_construct_aux(_Integer, _Integer,
        const _Alloc&, __true_type)): Cast the second argument to value_type.
        * include/ext/sso_string_base.h (_M_construct_aux(_Integer, _Integer,
        std::__true_type)): Likewise.
        * include/ext/rc_string_base.h (_S_construct_aux(_Integer, _Integer,
        const _Alloc&, std::__true_type)): Likewise.
        * testsuite/21_strings/basic_string/cons/char/42261.cc: New.
        * testsuite/21_strings/basic_string/cons/wchar_t/42261.cc: Likewise.

Added:
    trunk/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/42261.cc
    trunk/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/42261.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/basic_string.h
    trunk/libstdc++-v3/include/ext/rc_string_base.h
    trunk/libstdc++-v3/include/ext/sso_string_base.h


-- 


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


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