Title
noexcept applied to expression of type void
Status
cd3
Section
6.8.2 [basic.fundamental]
Submitter
Nikolay Ivchenkov

Created on 2011-04-22.00:00:00 last changed 123 months ago

Messages

Date: 2012-10-15.00:00:00

[Moved to DR at the October, 2012 meeting.]

Date: 2011-08-15.00:00:00

Proposed resolution (August, 2011):

Change 6.8.2 [basic.fundamental] paragraph 9 as follows:

An expression of type void shall be used only as an expression statement (8.3 [stmt.expr]), as an operand of a comma expression (7.6.20 [expr.comma]), as a second or third operand of ?: (7.6.16 [expr.cond]), as the operand of typeid, noexcept, or decltype, as the expression in a return statement (8.7.4 [stmt.return]) for a function with the return type void, or as the operand of an explicit conversion to type cv void.
Date: 2012-09-24.00:00:00

The list of acceptable uses of an expression of type void in 6.8.2 [basic.fundamental] paragraph 9 does not, but should, include an operand of the noexcept operator.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2013-05-03 00:00:00adminsetstatus: dr -> drwp
2012-11-03 00:00:00adminsetmessages: + msg4121
2012-11-03 00:00:00adminsetstatus: ready -> dr
2012-09-24 00:00:00adminsetmessages: + msg3869
2011-04-22 00:00:00admincreate