Skip to content

[intro.defs], [dcl.attr.deprecated], [cpp.error] Define the term "warning" and use where appropriate #7893

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Eisenwave
Copy link
Contributor

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