This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13140] declaration in global namespace, definition inside named or anon namespace
- From: "zvonsully at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2006 23:11:35 -0000
- Subject: [Bug c++/13140] declaration in global namespace, definition inside named or anon namespace
- References: <bug-13140-3534@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from zvonsully at gmail dot com 2006-06-21 23:11 -------
on g++ v. 4.1.2 it is not fixed, But here I see "Fixed" with patches from 2005!
code:
namespace NS{//a namespace
template<class T>
class C//a template class inside a namespace
{
int f();//a member of C
};
}//NS
//here is the specialization
template<>
int NS:: C<int>::f(){return 0;}// !! I placed NS::
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13140