public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40746]  New: namespace-qualified lookup misses some ambiguities
@ 2009-07-14 14:55 jason at gcc dot gnu dot org
  2009-07-14 14:56 ` [Bug c++/40746] " jason at gcc dot gnu dot org
  2009-07-14 18:43 ` jason at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-14 14:55 UTC (permalink / raw)
  To: gcc-bugs

namespace A
{
  int i;                        // { dg-error "i" }
}
using namespace A;
namespace B
{
  namespace B2
  {
    int i;                      // { dg-error "i" }
  }
  using namespace B2;
}
using namespace B;

int j = ::i;                    // { dg-error "ambiguous" }

The code currently doesn't look into B2 because it found something in A.


-- 
           Summary: namespace-qualified lookup misses some ambiguities
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: jason at gcc dot gnu dot org
        ReportedBy: jason at gcc dot gnu dot org


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


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

* [Bug c++/40746] namespace-qualified lookup misses some ambiguities
  2009-07-14 14:55 [Bug c++/40746] New: namespace-qualified lookup misses some ambiguities jason at gcc dot gnu dot org
@ 2009-07-14 14:56 ` jason at gcc dot gnu dot org
  2009-07-14 18:43 ` jason at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-14 14:56 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-14 14:55:48
               date|                            |


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


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

* [Bug c++/40746] namespace-qualified lookup misses some ambiguities
  2009-07-14 14:55 [Bug c++/40746] New: namespace-qualified lookup misses some ambiguities jason at gcc dot gnu dot org
  2009-07-14 14:56 ` [Bug c++/40746] " jason at gcc dot gnu dot org
@ 2009-07-14 18:43 ` jason at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-14 18:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jason at gcc dot gnu dot org  2009-07-14 18:43 -------
Fixed for 4.5.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


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


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

end of thread, other threads:[~2009-07-14 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-14 14:55 [Bug c++/40746] New: namespace-qualified lookup misses some ambiguities jason at gcc dot gnu dot org
2009-07-14 14:56 ` [Bug c++/40746] " jason at gcc dot gnu dot org
2009-07-14 18:43 ` jason at gcc dot gnu dot 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).