Movatterモバイル変換


[0]ホーム

URL:


Issue 1843 - WG21 CWG Issues
Title
Bit-field in conditional operator with throw operand
Status
cd4
Section
7.6.16 [expr.cond]
Submitter
Richard Smith

Created on2014-01-25.00:00:00 last changed109 months ago

Messages

msg5351 (view)
Date: 2014-11-15.00:00:00

[Moved to DR at the November, 2014 meeting.]

msg4814 (view)
Date: 2014-02-15.00:00:00

Proposed resolution (February, 2014):

Change 7.6.16 [expr.cond] paragraph 2 as follows (this assumesthe revised wording of the resolution ofissue 1299as the base text):

If either the second or the third operand has typevoid, one ofthe following shall hold:

  • The second or the third operand (but not both) is a (possiblyparenthesized)throw-expression (14.2 [except.throw]); theresult is of the type and value category of the other operand. Theconditional-expression is a temporary expression if that operandis a temporary expressionand is a bit-field if that operand is abit-field.

  • ...

msg4813 (view)
Date: 2014-01-25.00:00:00

Presumably the result of something like

    b ? x : throw y

is a bit-field ifx is, but the current wording does notsay that.

History
DateUserActionArgs
2017-02-06 00:00:00adminsetstatus: drwp -> cd4
2015-05-25 00:00:00adminsetstatus: dr -> drwp
2015-04-13 00:00:00adminsetmessages: +msg5351
2014-11-24 00:00:00adminsetstatus: ready -> dr
2014-03-03 00:00:00adminsetmessages: +msg4814
2014-01-25 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp