This behavior is observed in cl.exe 16.00.40219.1I have this code:#pragma warning(default:4347)template <size_t param>void stuff( int value ){}void stuff( int value ){ stuff<4>( value ); //Line 84}that I compile with /W4 and get this output:1>Test.cpp(84): warning C4347: behavior change: 'void stuff<4>(int)' is called instead of 'void stuff(int)'that makes no sense. Line 84 explicitly calls a templated function, there's no way a non-templated function would be called here and therefore there's no behavior change. The warning is just wrong.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...