Skip to content

US 31-071 15.11p1.12 [cpp.predefined] Overbroad definition of __STDCPP_BFLOAT16_T__ #503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wg21bot opened this issue Oct 31, 2022 · 2 comments · Fixed by cplusplus/draft#5988
Labels
Milestone

Comments

@wg21bot
Copy link
Collaborator

wg21bot commented Oct 31, 2022

The wording for the predefined macro __STDCPP_BFLOAT16_T__ added by P1467 can be interpreted more broadly than was intended. See this GitHub issue on the working draft.

Proposed change:

Modify 15.11 [cpp.predefined] paragraph 1 sentence 12 as follows:
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].

@wg21bot wg21bot added the CWG Core label Oct 31, 2022
@jensmaurer jensmaurer changed the title US 15.11p1.12 [cpp.predefined] Overbroad definition of __STDCPP_BFLOAT16_T__ US 31-071 15.11p1.12 [cpp.predefined] Overbroad definition of __STDCPP_BFLOAT16_T__ Nov 3, 2022
@jensmaurer jensmaurer transferred this issue from another repository Nov 3, 2022
@jensmaurer jensmaurer added this to the CD C++23 milestone Nov 3, 2022
@jensmaurer
Copy link
Member

CWG2652

@jensmaurer
Copy link
Member

CWG 2022-11-08: Accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants