From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26705 invoked by alias); 30 Mar 2014 16:47:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26693 invoked by uid 48); 30 Mar 2014 16:47:36 -0000 From: "jmichae3 at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/60711] basic_ostringstream,basic_ostream,u16string,char16_t do not work together Date: Sun, 30 Mar 2014 16:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jmichae3 at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg02713.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60711 Jim Michaels changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32487|0 |1 is obsolete| | --- Comment #3 from Jim Michaels --- Created attachment 32489 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32489&action=edit replacement ostream2.ii attached a replacement ostream2.ii here is the full gcc -v output Sun 03/30/2014 9:23:35.40|D:\prj\df\df-3.19\win\tests|>"f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\g++.exe" -Wall -Wextra -v -sav e-temps -fno-strict-aliasing -fwrapv -lstdc++ -Wall -W -Wextra -Xlinker -Map=ostream2a.map -std=c++11 -Ofast -o "ostream2a.exe" "ostream2a.cpp" Using built-in specs. COLLECT_GCC=f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\g++.exe COLLECT_LTO_WRAPPER=f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../../../src/gcc-trunk/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysr oot=/d/mingwtrunk/x86_64-trunk-win32-sjlj-rt_v4/mingw64 --with-gxx-include-dir=/mingw64/x86_64-w64-mingw32/include/c++ --enable-shared --enable-static --enable- targets=all --enable-multilib --enable-languages=c,c++,lto --enable-libstdcxx-time=yes --enable-threads=win32 --enable-libgomp --enable-lto --enable-graphite -- enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-sjlj-exceptions --disable-isl-version-check --disable-cloo g-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --d isable-symvers --with-gnu-as --with-gnu-ld --with-arch-32=i686 --with-arch-64=nocona --with-tune-32=generic --with-tune-64=core2 --with-libiconv --with-system-z lib --with-gmp=/d/mingwtrunk/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/d/mingwtrunk/prerequisites/x86_64-w64-mingw32-static --with-mpc=/d/mingwtrunk/ prerequisites/x86_64-w64-mingw32-static --with-isl=/d/mingwtrunk/prerequisites/x86_64-w64-mingw32-static --with-cloog=/d/mingwtrunk/prerequisites/x86_64-w64-min gw32-static --enable-cloog-backend=isl --with-pkgversion='x86_64-win32-sjlj, Built by MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -I/d/mingwtrunk/x86_64-trunk-win32-sjlj-rt_v4/mingw64/opt/include -I/d/mingwtrunk/prerequisites/x86_64-zlib-static/include -I/d/mingwtrunk/pr erequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/d/mingwtrunk/x86_64-trunk-win32-sjlj-rt_v4/mingw64/opt/include -I/d/mingwtrunk/prerequisit es/x86_64-zlib-static/include -I/d/mingwtrunk/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe -L/d/mingwtrunk/x86_64-trunk-win32-sjlj- rt_v4/mingw64/opt/lib -L/d/mingwtrunk/prerequisites/x86_64-zlib-static/lib -L/d/mingwtrunk/prerequisites/x86_64-w64-mingw32-static/lib' Thread model: win32 gcc version 4.9.0 20140218 (experimental) (x86_64-win32-sjlj, Built by MinGW-W64 project) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-fno-strict-aliasing' '-fwrapv' '-Wall' '-Wextra' '-std=c++11' '-Ofast' '-o' 'ostream2a.exe' '-shared-libgcc' '-mtune=co re2' '-march=nocona' f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/cc1plus.exe -E -quiet -v -iprefix f:\x86_64-4. 9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.9.0/ -U_REENTRANT ostream2a.cpp -mtune=core2 -march=nocona -std=c++ 11 -Wall -Wextra -fno-strict-aliasing -fwrapv -Ofast -fpch-preprocess -o ostream2a.ii ignoring duplicate directory "f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/include" ignoring nonexistent directory "D:/mingwtrunk/x86_64-trunk-win32-sjlj-rt_v4/mingw64D:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../include" ignoring duplicate directory "f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/include-fixed" ignoring duplicate directory "f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x8 6_64-w64-mingw32/include" ignoring nonexistent directory "D:/mingwtrunk/x86_64-trunk-win32-sjlj-rt_v4/mingw64/mingw/include" #include "..." search starts here: #include <...> search starts here: f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.9.0/include f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.9.0/include-fixed f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw32/include f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++ f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32 f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/backward End of search list. COLLECT_GCC_OPTIONS='-v' '-save-temps' '-fno-strict-aliasing' '-fwrapv' '-Wall' '-Wextra' '-std=c++11' '-Ofast' '-o' 'ostream2a.exe' '-shared-libgcc' '-mtune=co re2' '-march=nocona' f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/cc1plus.exe -fpreprocessed ostream2a.ii -quiet -dumpbase ostream2a.cpp -mtune=core2 -march=nocona -auxbase ostream2a -Ofast -Wall -Wextra -std=c++11 -version -fno-strict-aliasing -fwrapv -o ostream2a.s GNU C++ (x86_64-win32-sjlj, Built by MinGW-W64 project) version 4.9.0 20140218 (experimental) (x86_64-w64-mingw32) compiled by GNU C version 4.9.0 20140218 (experimental), GMP version 5.1.3, MPFR version 3.1.2-p5, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C++ (x86_64-win32-sjlj, Built by MinGW-W64 project) version 4.9.0 20140218 (experimental) (x86_64-w64-mingw32) compiled by GNU C version 4.9.0 20140218 (experimental), GMP version 5.1.3, MPFR version 3.1.2-p5, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 3d656286c2fbf9376b6c665d39c3c502 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]' 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]' is protected basic_ostream() ^ ostream2a.cpp:16:12: error: within this context u32ostream u32cout; ^