Compiler Error C3199


For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

invalid use of floating-point pragmas: exceptions are not supported in non-precise mode

The float_control pragma was used to specify floating-point exception model under an /fp setting other than /fp:precise.

The following sample generates C3199:

// C3199.cpp  
// compile with: /fp:fast  
#pragma float_control(except, on)   // C3199