From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16656 invoked by alias); 10 Feb 2012 06:55:33 -0000 Received: (qmail 16646 invoked by uid 22791); 10 Feb 2012 06:55:32 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BJ,TW_CX,TW_DC,TW_GX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Feb 2012 06:55:12 +0000 From: "nospam.kotarou.dono at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/52195] New: doesn't put stdio, stderr and stdin in the std namespace Date: Fri, 10 Feb 2012 06:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nospam.kotarou.dono at gmail 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-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 X-SW-Source: 2012-02/txt/msg01040.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52195 Bug #: 52195 Summary: doesn't put stdio, stderr and stdin in the std namespace Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: nospam.kotarou.dono@gmail.com doesn't seem to put stdio, stderr and stdin in the std namespace. Example: $ printf ' #include int main() { std::fputs("Hi there.", std::stdout); return 0; } ' | g++ -xc++ - -o - > /dev/null : In function =E2=80=98int main()=E2=80=99: :5:16: error: =E2=80=98stdout=E2=80=99 is not a member of =E2=80=98s= td=E2=80=99 :5:16: note: suggested alternative: In file included from /usr/include/c++/4.7/cstdio:44:0, from :2: /usr/include/stdio.h:166:25: note: =E2=80=98stdout=E2=80=99 $ g++ -v Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu/Linaro 4.7-20120205-1' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=3Dc,c++,fortran,objc,obj-c++,go --prefix=3D/usr --program-suffix=3D-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --with-gxx-include-dir=3D/usr/include/c++/4.7 --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=3Di686 --with-tune=3Dgener= ic --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 4.7.0 20120205 (experimental) [trunk revision 183903] (Ubuntu/Linaro 4.7-20120205-1)