История изменений
Исправление rumgot, (текущая версия) :
Смотри черновик стандарта C++17
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4659.pdf
9.6.3 The return statement [stmt.return]
2.
…
Flowing off the end of a constructor, a destructor, or a function with a cv void return type is equivalent to a return with no operand. Otherwise, flowing off the end of a function other than main (6.6.1) results in undefined behavior.
Исходная версия rumgot, :
Смотри черновик стандарта C++17 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4659.pdf
9.6.3 The return statement [stmt.return]
2.
…
Flowing off the end of a constructor, a destructor, or a function with a cv void return type is equivalent to a return with no operand. Otherwise, flowing off the end of a function other than main (6.6.1) results in undefined behavior.