This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21924] New: namespace ignored
- From: "andre dot maute at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2005 18:06:26 -0000
- Subject: [Bug c++/21924] New: namespace ignored
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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