Title
Overbroad definition of __STDCPP_BFLOAT16_T__
Status
c++23
Section
15.11 [cpp.predefined]
Submitter
US

Created on 2022-11-03.00:00:00 last changed 9 months ago

Messages

Date: 2022-11-08.20:28:43

Proposed resolution (approved by CWG 2022-11-08):

Change in 15.11 [cpp.predefined] paragraph 1 as follows:

__STDCPP_BFLOAT16_T__

Defined as the integer literal 1 if and only if the implementation supports an extended floating-point type with the properties of the typedef-name std::bfloat16_t as described in 6.8.3 [basic.extended.fp].
Date: 2022-11-27.21:00:25
P2720R0 comment USĀ 31-071

[Accepted at the November, 2022 meeting.]

The wording for the predefined macro __STDCPP_BFLOAT16_T__ added by P1467 can be interpreted more broadly than was intended.

History
Date User Action Args
2023-07-16 13:00:43adminsetstatus: open -> c++23
2023-07-16 13:00:43adminsetstatus: wp -> open
2023-02-18 18:43:04adminsetstatus: accepted -> wp
2022-11-25 05:14:04adminsetstatus: nb -> accepted
2022-11-08 20:28:43adminsetstatus: open -> nb
2022-11-08 20:28:43adminsetstatus: open -> open
2022-11-08 20:28:43adminsetstatus: open -> open
2022-11-08 20:28:43adminsetstatus: open -> open
2022-11-08 14:03:56adminsetstatus: nb -> open
2022-11-08 14:03:56adminsetstatus: nb -> nb
2022-11-08 14:03:56adminsetstatus: nb -> nb
2022-11-08 14:03:56adminsetmessages: + msg6980
2022-11-03 00:00:00admincreate