public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/36231]  New: ostream includes unistd.h outside namespace std, polluting
@ 2008-05-13 19:46 igodard at pacbell dot net
  2008-05-13 20:04 ` [Bug libstdc++/36231] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 21+ messages in thread
From: igodard at pacbell dot net @ 2008-05-13 19:46 UTC (permalink / raw)
  To: gcc-bugs

Include chain is ostream -> ios -> iosfwd -> bits/c++io.h -> bits/gthr.h ->
bits/gthr-default.h -> unistd.h. The same chain also includes pthread.h. These
are imported at file scope, not in namespace std, which pollutes the
application name space.

I tried to report this to libstdc++ project, but their reporting instructions
seem to lead here although strictly there's no problem with the compiler
itself.


-- 
           Summary: ostream includes unistd.h outside namespace std,
                    polluting
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net


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


^ permalink raw reply	[flat|nested] 21+ messages in thread
[parent not found: <bug-36231-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-07-15 12:10 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-13 19:46 [Bug libstdc++/36231] New: ostream includes unistd.h outside namespace std, polluting 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
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

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).