public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/59665] New: User code can cause ambiguous references to "std" in libstdc++
@ 2014-01-03 14:44 fanael4 at gmail dot com
  2014-01-06 17:18 ` [Bug libstdc++/59665] " redi at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: fanael4 at gmail dot com @ 2014-01-03 14:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59665
           Summary: User code can cause ambiguous references to "std" in
                    libstdc++
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fanael4 at gmail dot com

The following PURE EVIL but legal code:

namespace foo { namespace std {} }
using namespace foo;
#include <algorithm>

causes the compiler to spew out lots of "error: reference to 'std' is
ambiguous" errors deep in the bowels of libstdc++, for rather obvious reasons.
Granted, this is code is worse than reload, but it's legal, and as such
shouldn't break the standard library.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libstdc++/59665] User code can cause ambiguous references to "std" in libstdc++
  2014-01-03 14:44 [Bug libstdc++/59665] New: User code can cause ambiguous references to "std" in libstdc++ fanael4 at gmail dot com
@ 2014-01-06 17:18 ` redi at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2014-01-06 17:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*sigh* we'd need to say ::std everywhere to support that code


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-06 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-03 14:44 [Bug libstdc++/59665] New: User code can cause ambiguous references to "std" in libstdc++ fanael4 at gmail dot com
2014-01-06 17:18 ` [Bug libstdc++/59665] " redi at gcc dot gnu.org

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