Skip to content

Conversation

eisenwave
Copy link
Member

Closes #7730.
Closes #7728.

The standard currently uses the term "warning" and "diagnostic message", but only the latter term is defined. It would be possible to purge "warning", but @jwakely suggested instead to keep both terms to retain the standard's expressiveness.

I agree with this direction, and the fix is simple.

The overwhelming majority of diagnostic messages are part of IF or IFNDR behavior, or part of an assertion or erroneous behavior, etc.. Only [cpp.error] (#warning) and [dcl.attr.deprecated] ([[deprecated]]) say "diagnostic message" when they could clearly say "warning".

@eisenwave eisenwave changed the title Warnings [intro.defs], [dcl.attr.deprecated], [cpp.error] Define the term "warning" and use where appropriate May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace "warning" with "diagnostic", or define "warning"
1 participant