In a trailing decltype for a function's return type (possibly other cases), the decltype ignores the const qualifiers of the parameters, causing it to use the wrong operator overloads. In this case the compiler compiled when it should have emitted a compiler error.Compiler correctly does not compile when the operator is replaced with a member function.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Operating System Language