public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "redi at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/36231] ostream includes unistd.h outside namespace std, polluting Date: Fri, 30 Apr 2010 09:51:00 -0000 [thread overview] Message-ID: <20100430095126.24381.qmail@sourceware.org> (raw) In-Reply-To: <bug-36231-6594@http.gcc.gnu.org/bugzilla/> ------- Comment #8 from redi at gcc dot gnu dot org 2010-04-30 09:51 ------- > I guess I'm still not being clear. I'm not using *any* of those names; I'm not If you're not using the names why do you care? > using C; I'm not using POSIX. I'm only using ostream, which is a plain old C++ > library, but when I include <ostream> I'm getting C library functions like > open() - not C++ open, C open() - added to my global space, where they conflict > with application identifiers. There is not "C++ open", and you're on a POSIX platform, so there are POSIX interfaces defined, which yes, are defined in terms of C functions. But how do they conflict with application identifiers if you're not using the names? > Including a C++ include file should not cause any identifiers from the C or > POSIX to be gratuitously added to the the user's global space. This is a bug. > > Please check with your colleagues if you still do not understand the problem. I understand it, but I'm not going to fix it. > Andrew says 4.3 has fixed this; if so it can be closed FIXED, if verified. But > closing it WONTFIX is wrong. No, he suggested you /try/ 4.3, as it has some reductions in header dependencies, "fixes LIKE this". As it's not fixed, FIXED is wrong. I agree the situation isn't ideal, so it's not INVALID, but as I don't plan to do anything about it, WONTFIX seems appropriate. Check with http://gcc.gnu.org/bugzilla/page.cgi?id=fields.html#resolution if you still don't understand the words. You could consider sending a request to the POSIX C++ working group, requesting that POSIX interfaces do not pollute the global namespace when used by C++ programs. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36231
next prev parent reply other threads:[~2010-04-30 9:51 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-05-13 19:46 [Bug libstdc++/36231] New: " igodard at pacbell dot net 2008-05-13 20:04 ` [Bug libstdc++/36231] " pinskia at gcc dot gnu dot org 2010-04-29 23:16 ` redi at gcc dot gnu dot org 2010-04-29 23:36 ` igodard at pacbell dot net 2010-04-30 1:02 ` redi at gcc dot gnu dot org 2010-04-30 1:04 ` paolo dot carlini at oracle dot com 2010-04-30 5:28 ` igodard at pacbell dot net 2010-04-30 9:32 ` paolo dot carlini at oracle dot com 2010-04-30 9:51 ` redi at gcc dot gnu dot org [this message] 2010-04-30 14:24 ` igodard at pacbell dot net 2010-04-30 14:42 ` joseph at codesourcery dot com 2010-04-30 15:58 ` redi at gcc dot gnu dot org [not found] <bug-36231-4@http.gcc.gnu.org/bugzilla/> 2011-04-20 15:18 ` redi at gcc dot gnu.org 2011-04-20 18:42 ` paolo.carlini at oracle dot com 2011-04-20 18:44 ` paolo.carlini at oracle dot com 2011-04-20 20:37 ` paolo.carlini at oracle dot com 2011-04-20 21:07 ` igodard at pacbell dot net 2011-04-20 23:10 ` rwild at gcc dot gnu.org 2011-04-21 0:03 ` paolo.carlini at oracle dot com 2011-04-21 0:23 ` igodard at pacbell dot net 2011-07-15 12:10 ` paolo.carlini at oracle dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100430095126.24381.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).