public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21924] New: namespace ignored
@ 2005-06-05 18:06 andre dot maute at gmx dot de
  2005-06-05 18:14 ` [Bug c++/21924] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 4+ messages in thread
From: andre dot maute at gmx dot de @ 2005-06-05 18:06 UTC (permalink / raw)
  To: gcc-bugs

the following code compiles with 3.4.4, 4.0-20050430 
 
---------------------------- 
namespace element { 
struct Element {}; 
void connect( Element* e1, Element* e2 ) {} 
} // namespace element 
 
void foo_connect( element::Element* e1, element::Element* e2 ) { 
        connect(e1,e2); 
} 
---------------------------- 
 
Isn't it necessary to open the namespace in foo_connect?

-- 
           Summary: namespace ignored
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andre dot maute at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/21924] namespace ignored
  2005-06-05 18:06 [Bug c++/21924] New: namespace ignored andre dot maute at gmx dot de
@ 2005-06-05 18:14 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-05 18:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-05 18:13 -------
This is how namelookup works for functions.
See the whole section in the standard about this, 3.4.2 [basic.lookup.koenig].

The section is named Argument-dependent name lookup.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug c++/21924] namespace ignored
       [not found] <bug-21924-6020@http.gcc.gnu.org/bugzilla/>
  2006-01-30 18:17 ` pinskia at gcc dot gnu dot org
@ 2006-01-30 18:17 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-30 18:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-01-30 18:17 -------
Mark as a dup of bug 7049.

*** This bug has been marked as a duplicate of 7049 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug c++/21924] namespace ignored
       [not found] <bug-21924-6020@http.gcc.gnu.org/bugzilla/>
@ 2006-01-30 18:17 ` pinskia at gcc dot gnu dot org
  2006-01-30 18:17 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-30 18:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-01-30 18:17 -------
Reopening to ...


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


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


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-05 18:06 [Bug c++/21924] New: namespace ignored andre dot maute at gmx dot de
2005-06-05 18:14 ` [Bug c++/21924] " pinskia at gcc dot gnu dot org
     [not found] <bug-21924-6020@http.gcc.gnu.org/bugzilla/>
2006-01-30 18:17 ` pinskia at gcc dot gnu dot org
2006-01-30 18:17 ` pinskia 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).