Bugtracking System

Bugtracking System

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

2 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

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?

Accedere per lasciare un commento.