Math Error M6111


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Math Error M6111.

stack underflow

A floating-point operation resulted in a stack underflow on the 8087/287/387 coprocessor or the emulator.

This error is often caused by a call to a long double function that does not return a value. For example, the following generates this error when compiled and run:

long double ld() {};  
main ()  

Program terminates with exit code 139.