[Bug c++/42281] g++ instantiates function templates at the wrong place

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Dec 4 22:34:00 GMT 2009



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-12-04 22:34 -------
(In reply to comment #2)
> I have tried to simplify the code, but I have created only problem with int
> (not with user structure). In real code we have also something like this:

Your original code is invalid code as Koenig lookup is not able to find the
function for std::map<Key,Value1> as the associated namespace is only std and
not the global namespace.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42281



More information about the Gcc-bugs mailing list