You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change 6.6.3 [stmt.return] paragraph 2 as follows:
...Flowing off the end of a function with a void return type is equivalent to a return with no value; this results in undefined behavior in a value-returning function operand. Otherwise, flowing off the end of a function other than main (3.6.1 [basic.start.main] results in undefined behavior.
Should it be ... a function with a *cv* void return type is equivalent to ...?
The text was updated successfully, but these errors were encountered:
It appears that if the indefinite article or plural form is used, the set of types {void, volatile void, const void, const volatile void} is being referred to. This is consistent with the formatting - fixed width is only employed when talking of void, not "the void types" or "a void type". E.g. [basic.types]/5:
Incompletely-defined object types and the void types are incomplete types (3.9.1).
The text in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0167r0.html#2017 says:
Should it be
... a function with a *cv* void return type is equivalent to ...
?The text was updated successfully, but these errors were encountered: