This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36982] Unfolding of template function (in namesspace) using overloads (in same namespace) requires forward declarations
- 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: 10 Aug 2008 23:21:57 -0000
- Subject: [Bug c++/36982] Unfolding of template function (in namesspace) using overloads (in same namespace) requires forward declarations
- References: <bug-36982-16537@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-10 23:21 -------
This is correct behavior as MyType is not in the namespace so Read is not found
after the call. If you want Read to be found, you can put it in the same
namespace as MyType.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36982