This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37374] "using" shadows declaration
- From: "chris dot fairles at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2008 17:33:58 -0000
- Subject: [Bug c++/37374] "using" shadows declaration
- References: <bug-37374-16667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from chris dot fairles at gmail dot com 2008-09-04 17:33 -------
mainline compiles first snippet fine. second gives:
error: 'void N2::f(int)' should have been declared inside 'N2'
For what its worth msvc 9 and Comeau C/C++ 4.3.10.1 compile both snippets w/o
error.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37374