This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/23055] overload resolution does not find templated function


------- Additional Comments From gdr at integrable-solutions dot net  2005-07-25 15:28 -------
Subject: Re:  overload resolution does not find templated function

"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| This basically boils down to this question: 
| --------------------- 
| template <class> struct S { typedef int type; }; 
|  
| template <class T> 
| int foo(T, typename S<T>::type * ret); 
|  
| int j = foo(1, 0); 
| ---------------------- 
| icc accepts this, gcc doesn't. I believe it should.

Agreed.  This is a GCCbug.

-- Gaby


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]