- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Compiler version and platform:
Intel(R) C Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.0.098 Build 20160721
$ g++-6.2 small.cpp $ clang++ small.cpp $ $ icc small.cpp small.cpp(14): error: no instance of function template "foo" matches the argument list argument types are: (A<D, C>) foo (a); ^ small.cpp(9): note: this candidate was rejected because at least one template argument could not be deduced template < class T > void foo (const A < T, B > &) {} ^ compilation aborted for small.cpp (code 2) $ $ cat small.cpp template < class T, class S > struct A {}; struct B {}; struct C {}; struct D {}; template < class T > struct A < T, B > {}; template < class T > struct A < T, C > : public A < C, B > {}; template < class T > void foo (const A < T, B > &) {} int main () { A < D, C > a; foo (a); return 0; } $
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please allow me sometime to reproduce and debug this issue. I will update you as soon as I am able to reproduce.
Thanks,
Varsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have raised this issue to the Engineering team. I will let you know as soon as the fix is available.
Thanks,
Varsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I doubt that the code is legal -- Both Microsoft and the clang compiler give a similar error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Judith, I think it should be valid. BTW, it's accepted by the latest clang.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just ran into this same bug on icpc version 19.0.4.243. Any chance this will get fixed?

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page