This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/9726] namespace typedef hides global when interacting with using directive
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Feb 2006 04:37:33 -0000
- Subject: [Bug c++/9726] namespace typedef hides global when interacting with using directive
- References: <bug-9726-5469@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-02-13 04:37 -------
The error message now is totally bogus:
t.cc: In function 'int main()':
t.cc:13: error: reference to 'foo' is ambiguous
t.cc:2: error: candidates are: class foo
t.cc:6: error: typedef class foo bar::foo
t.cc:13: error: reference to 'foo' is ambiguous
t.cc:2: error: candidates are: class foo
t.cc:6: error: typedef class foo bar::foo
t.cc:13: error: expected `;' before 'a'
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9726