[Bug libstdc++/60711] basic_ostringstream,basic_ostream,u16string,char16_t do not work together

jmichae3 at yahoo dot com gcc-bugzilla@gcc.gnu.org
Sun Mar 30 16:41:00 GMT 2014


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

--- Comment #2 from Jim Michaels <jmichae3 at yahoo dot com> ---
Created attachment 32488
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32488&action=edit
corrected ostream2a.cpp source file

attached corrected source code.
nearly identical errors.
In file included from ostream2a.cpp:2:0:
f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\x86_64-w64-mingw32\include\c++\ostream:384:7:
error: 'std::basic_ostream<_CharT, _Traits>
basic_ostream() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>]'
is protected
       basic_ostream()
       ^
ostream2a.cpp:15:10: error: within this context
 uostream ucout;
          ^
In file included from ostream2a.cpp:2:0:
f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\x86_64-w64-mingw32\include\c++\ostream:384:7:
error: 'std::basic_ostream<_CharT, _Traits>
basic_ostream() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>]'
is protected
       basic_ostream()
       ^
ostream2a.cpp:16:12: error: within this context
 u32ostream u32cout;
            ^



More information about the Gcc-bugs mailing list