[Bug c++/13978] [3.4/3.5 Regression] Koenig lookup doesn't find template functions in templates

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Feb 2 15:41:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-02 15:41 -------
Note this works (aka removing the template from func2):
namespace ns {
  template <class TP> void func1(TP* t);
  struct A {};
}
 void func2() {
  func1( new ns::A() );
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


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



More information about the Gcc-bugs mailing list