This is the mail archive of the gcc@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]

Re: g++ template function overload resolution failure(?)


On Wed, 28 Jan 2004, Richard Guenther wrote:

> Anyway - here follows a testcase that is currently failing:
>

JFYI: quick testing with como4.3.3 and icc8 and both also complain:

thinkpad:/tmp$ como -c tt.cc
"tt.cc", line 23: error: no instance of function template "foo" matches the
          argument list
            argument types are: (Foo<Object<int, Tag1>>)
    foo(Foo<Object<int, Tag1> >());
    ^

1 error detected in the compilation of "tt.cc".
thinkpad:/tmp$ icc -c tt.cc
tt.cc(23): error: no instance of function template "foo" matches the argument list
            argument types are: (Foo<Object<int, Tag1>>)
    foo(Foo<Object<int, Tag1> >());
    ^

compilation aborted for tt.cc (code 2)
thinkpad:/tmp$

Cheers,

Karel
--
Karel Gardas                  kgardas@objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com


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