This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23055] overload resolution does not find templated function
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2005 15:28:32 -0000
- Subject: [Bug c++/23055] overload resolution does not find templated function
- References: <20050725050809.23055.peter.pirkelbauer@tamu.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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