Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Bugtracking System

Intel_C_Intel
Employee
361 Views
Hello,

in the release notes of the latest version I find this:

"Q179814 partial specialization of function template produces wrong output"

Is it possible to get more information about bugs, which
are open and fixed.

Andreas
0 Kudos
1 Reply
Ganesh_R_Intel
Employee
361 Views
Hi Andreas -

You are right. Currently we only provide a short descriptive title and the unique identifier.

The specific issue you were talking about had to do with the fact that there is no such feature as "Partial specialization of function templates" in the C++ standard. Well there is a proposal, but it is not in the standard yet.

As an example, the following program should give an error, and it does on Linux.
Windows 7.1 compiler would actually build it as an indirect consequence of a compatibility fix. This should be fixed and rightly so shows an error in the 8.0 version of the compiler.

#include
template
int foo()
{
return 1;
}
template
int foo()
{
return 2;
}
int main()
{
std::cout << foo() << ' ' << foo() << ' ';
return 0;
}

Did this help at all or was it too verbose or too confising?

0 Kudos
Reply