Prevent a template friend declaration inside a template class to from forward declaration the friend as a sub-class. Properly record the fully qualified name of class template used as parameter of a template function (this solves issue with finding the proper function for templated function declared inside a namespace). For example:    template <class T> bool operator==(MyClass<T>&,MyClass<T>&);
Prevent a template friend declaration inside a template class to
from forward declaration the friend as a sub-class.
Properly record the fully qualified name of class template used
as parameter of a template function (this solves issue with finding
the proper function for templated function declared inside a namespace).
For example:
   template <class T> bool operator==(MyClass<T>&,MyClass<T>&);


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@12986 27541ba8-7e3a-0410-8455-c3a389f83636

mattkretz/root,Duraznos/root,omazapa/root-old,mkret2/root,cxx-hep/root-cern,zzxuanyuan/root,strykejern/TTreeReader,0x0all/ROOT,pspe/root,Y--/root,Dr15Jones/root,perovic/root,jrtomps/root,ffurano/root5,mhuwiler/rootauto,zzxuanyuan/root-compressor-dummy,esakellari/my_root_for_test,vukasinmilosevic/root,alexschlueter/cern-root,dfunke/root,CristinaCristescu/root,pspe/root,evgeny-boger/root,sirinath/root,gbitzes/root,nilqed/root,gganis/root,vukasinmilosevic/root,davidlt/root,nilqed/root,strykejern/TTreeReader,zzxuanyuan/root,lgiommi/root,sirinath/root,zzxuanyuan/root,ffurano/root5,simonpf/root,olifre/root,0x0all/ROOT,esakellari/my_root_for_test,georgtroska/root,karies/root,abhinavmoudgil95/root,gbitzes/root,perovic/root,beniz/root,abhinavmoudgil95/root,gbitzes/root,jrtomps/root,BerserkerTroll/root,krafczyk/root,nilqed/root,pspe/root,esakellari/root,evgeny-boger/root,sawenzel/root,zzxuanyuan/root,abhinavmoudgil95/root,root-mirror/root,simonpf/root,sbinet/cxx-root,veprbl/root,olifre/root,nilqed/root,lgiommi/root,nilqed/root,smarinac/root,buuck/root,perovic/root,pspe/root,cxx-hep/root-cern,satyarth934/root,beniz/root,gbitzes/root,alexschlueter/cern-root,georgtroska/root,mkret2/root,sbinet/cxx-root,omazapa/root,pspe/root,dfunke/root,alexschlueter/cern-root,cxx-hep/root-cern,davidlt/root,esakellari/root,sawenzel/root,Duraznos/root,evgeny-boger/root,mkret2/root,strykejern/TTreeReader,georgtroska/root,abhinavmoudgil95/root,vukasinmilosevic/root,omazapa/root-old,arch1tect0r/root,satyarth934/root,sbinet/cxx-root,omazapa/root,dfunke/root,simonpf/root,perovic/root,Y--/root,gganis/root,kirbyherm/root-r-tools,perovic/root,alexschlueter/cern-root,sawenzel/root,jrtomps/root,mhuwiler/rootauto,zzxuanyuan/root,tc3t/qoot,root-mirror/root,mattkretz/root,root-mirror/root,nilqed/root,ffurano/root5,smarinac/root,perovic/root,BerserkerTroll/root,veprbl/root,buuck/root,evgeny-boger/root,alexschlueter/cern-root,beniz/root,thomaskeck/root,strykejern/TTreeReader,BerserkerTroll/root,tc3t/qoot,esakellari/my_root_for_test,omazapa/root,esakellari/root,0x0all/ROOT,nilqed/root,zzxuanyuan/root,sbinet/cxx-root,sbinet/cxx-root,dfunke/root,olifre/root,zzxuanyuan/root,zzxuanyuan/root-compressor-dummy,esakellari/my_root_for_test,BerserkerTroll/root,esakellari/root,mattkretz/root,esakellari/my_root_for_test,omazapa/root-old,pspe/root,krafczyk/root,thomaskeck/root,agarciamontoro/root,sawenzel/root,perovic/root,dfunke/root,olifre/root,mkret2/root,pspe/root,omazapa/root-old,olifre/root,sbinet/cxx-root,bbockelm/root,root-mirror/root,strykejern/TTreeReader,pspe/root,evgeny-boger/root,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,ffurano/root5,gbitzes/root,mhuwiler/rootauto,zzxuanyuan/root-compressor-dummy,dfunke/root,mattkretz/root,davidlt/root,CristinaCristescu/root,Y--/root,georgtroska/root,thomaskeck/root,Duraznos/root,agarciamontoro/root,vukasinmilosevic/root,jrtomps/root,sawenzel/root,kirbyherm/root-r-tools,kirbyherm/root-r-tools,cxx-hep/root-cern,pspe/root,zzxuanyuan/root-compressor-dummy,agarciamontoro/root,tc3t/qoot,satyarth934/root,smarinac/root,gbitzes/root,root-mirror/root,ffurano/root5,gganis/root,georgtroska/root,buuck/root,sawenzel/root,Y--/root,jrtomps/root,abhinavmoudgil95/root,0x0all/ROOT,sbinet/cxx-root,root-mirror/root,mkret2/root,lgiommi/root,krafczyk/root,vukasinmilosevic/root,arch1tect0r/root,mhuwiler/rootauto,esakellari/root,gbitzes/root,buuck/root,Y--/root,root-mirror/root,georgtroska/root,mhuwiler/rootauto,karies/root,buuck/root,buuck/root,kirbyherm/root-r-tools,bbockelm/root,esakellari/root,bbockelm/root,gganis/root,buuck/root,tc3t/qoot,veprbl/root,omazapa/root-old,buuck/root,evgeny-boger/root,Y--/root,kirbyherm/root-r-tools,bbockelm/root,satyarth934/root,jrtomps/root,esakellari/root,arch1tect0r/root,sirinath/root,root-mirror/root,karies/root,bbockelm/root,zzxuanyuan/root-compressor-dummy,evgeny-boger/root,simonpf/root,karies/root,tc3t/qoot,georgtroska/root,karies/root,krafczyk/root,gbitzes/root,karies/root,simonpf/root,arch1tect0r/root,olifre/root,0x0all/ROOT,satyarth934/root,olifre/root,sbinet/cxx-root,Duraznos/root,gganis/root,Duraznos/root,zzxuanyuan/root-compressor-dummy,root-mirror/root,sirinath/root,veprbl/root,arch1tect0r/root,abhinavmoudgil95/root,perovic/root,beniz/root,lgiommi/root,tc3t/qoot,smarinac/root,nilqed/root,georgtroska/root,CristinaCristescu/root,olifre/root,agarciamontoro/root,veprbl/root,sirinath/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,Y--/root,mattkretz/root,tc3t/qoot,Dr15Jones/root,omazapa/root,smarinac/root,arch1tect0r/root,beniz/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,omazapa/root-old,root-mirror/root,sbinet/cxx-root,omazapa/root-old,esakellari/my_root_for_test,gganis/root,mkret2/root,mhuwiler/rootauto,strykejern/TTreeReader,veprbl/root,abhinavmoudgil95/root,lgiommi/root,krafczyk/root,esakellari/root,BerserkerTroll/root,Duraznos/root,CristinaCristescu/root,zzxuanyuan/root,mhuwiler/rootauto,gbitzes/root,satyarth934/root,0x0all/ROOT,omazapa/root,olifre/root,thomaskeck/root,Dr15Jones/root,omazapa/root,ffurano/root5,jrtomps/root,vukasinmilosevic/root,mkret2/root,lgiommi/root,veprbl/root,strykejern/TTreeReader,nilqed/root,CristinaCristescu/root,zzxuanyuan/root,zzxuanyuan/root,gganis/root,gganis/root,karies/root,sirinath/root,omazapa/root,arch1tect0r/root,agarciamontoro/root,cxx-hep/root-cern,veprbl/root,tc3t/qoot,krafczyk/root,georgtroska/root,Dr15Jones/root,lgiommi/root,arch1tect0r/root,lgiommi/root,mattkretz/root,gganis/root,Duraznos/root,karies/root,beniz/root,georgtroska/root,BerserkerTroll/root,Duraznos/root,buuck/root,BerserkerTroll/root,sbinet/cxx-root,satyarth934/root,smarinac/root,cxx-hep/root-cern,Y--/root,simonpf/root,veprbl/root,agarciamontoro/root,mkret2/root,smarinac/root,tc3t/qoot,dfunke/root,sawenzel/root,beniz/root,0x0all/ROOT,agarciamontoro/root,mkret2/root,abhinavmoudgil95/root,sawenzel/root,krafczyk/root,mattkretz/root,lgiommi/root,satyarth934/root,zzxuanyuan/root,Dr15Jones/root,beniz/root,sirinath/root,mhuwiler/rootauto,beniz/root,mkret2/root,cxx-hep/root-cern,jrtomps/root,bbockelm/root,bbockelm/root,abhinavmoudgil95/root,thomaskeck/root,CristinaCristescu/root,mhuwiler/rootauto,arch1tect0r/root,vukasinmilosevic/root,zzxuanyuan/root,esakellari/my_root_for_test,evgeny-boger/root,esakellari/root,krafczyk/root,thomaskeck/root,kirbyherm/root-r-tools,zzxuanyuan/root-compressor-dummy,perovic/root,veprbl/root,sirinath/root,bbockelm/root,agarciamontoro/root,alexschlueter/cern-root,gbitzes/root,jrtomps/root,bbockelm/root,mattkretz/root,bbockelm/root,gganis/root,nilqed/root,dfunke/root,vukasinmilosevic/root,olifre/root,agarciamontoro/root,simonpf/root,vukasinmilosevic/root,Y--/root,lgiommi/root,beniz/root,mhuwiler/rootauto,omazapa/root-old,CristinaCristescu/root,satyarth934/root,0x0all/ROOT,ffurano/root5,sbinet/cxx-root,simonpf/root,thomaskeck/root,root-mirror/root,Dr15Jones/root,esakellari/my_root_for_test,krafczyk/root,BerserkerTroll/root,dfunke/root,gganis/root,omazapa/root,vukasinmilosevic/root,BerserkerTroll/root,perovic/root,jrtomps/root,sawenzel/root,smarinac/root,evgeny-boger/root,Duraznos/root,buuck/root,sirinath/root,CristinaCristescu/root,davidlt/root,Dr15Jones/root,davidlt/root,abhinavmoudgil95/root,satyarth934/root,abhinavmoudgil95/root,karies/root,esakellari/my_root_for_test,buuck/root,thomaskeck/root,omazapa/root-old,dfunke/root,simonpf/root,sirinath/root,simonpf/root,kirbyherm/root-r-tools,karies/root,esakellari/root,pspe/root,evgeny-boger/root,tc3t/qoot,veprbl/root,jrtomps/root,smarinac/root,BerserkerTroll/root,bbockelm/root,omazapa/root,olifre/root,davidlt/root,sawenzel/root,Y--/root,davidlt/root,Duraznos/root,gbitzes/root,simonpf/root,mhuwiler/rootauto,krafczyk/root,dfunke/root,omazapa/root,omazapa/root-old,perovic/root,arch1tect0r/root,evgeny-boger/root,omazapa/root-old,alexschlueter/cern-root,beniz/root,sirinath/root,satyarth934/root,esakellari/root,CristinaCristescu/root,smarinac/root,CristinaCristescu/root,thomaskeck/root,mattkretz/root,esakellari/my_root_for_test,davidlt/root,mkret2/root,CristinaCristescu/root,omazapa/root,davidlt/root,nilqed/root,karies/root,mattkretz/root,krafczyk/root,mattkretz/root,lgiommi/root,georgtroska/root,davidlt/root,davidlt/root,sawenzel/root,thomaskeck/root,cxx-hep/root-cern,Duraznos/root,pspe/root,BerserkerTroll/root,arch1tect0r/root,0x0all/ROOT,Y--/root,zzxuanyuan/root-compressor-dummy