|
56 | 56 | \terminal{\# undef } identifier new-line\br
|
57 | 57 | \terminal{\# line } pp-tokens new-line\br
|
58 | 58 | \terminal{\# error } \opt{pp-tokens} new-line\br
|
| 59 | + \terminal{\# warning} \opt{pp-tokens} new-line\br |
59 | 60 | \terminal{\# pragma } \opt{pp-tokens} new-line\br
|
60 | 61 | \terminal{\# }new-line
|
61 | 62 | \end{bnf}
|
|
1603 | 1604 | one of the two previous forms, the behavior is undefined;
|
1604 | 1605 | otherwise, the result is processed as appropriate.
|
1605 | 1606 |
|
1606 |
| -\rSec1[cpp.error]{Error directive}% |
| 1607 | +\rSec1[cpp.error]{Diagnostic directives}% |
1607 | 1608 | \indextext{preprocessing directive!error}%
|
| 1609 | +\indextext{preprocessing directive!diagnostic}% |
| 1610 | +\indextext{preprocessing directive!warning}% |
1608 | 1611 | \indextext{\idxcode{\#error}|see{preprocessing directive, error}}
|
1609 | 1612 |
|
1610 | 1613 | \pnum
|
1611 |
| -A preprocessing directive of the form |
| 1614 | +A preprocessing directive of either of the following forms |
1612 | 1615 | \begin{ncsimplebnf}
|
1613 |
| -\terminal{\# error} \opt{pp-tokens} new-line |
| 1616 | +\terminal{\# error} \opt{pp-tokens} new-line\br |
| 1617 | +\terminal{\# warning} \opt{pp-tokens} new-line |
1614 | 1618 | \end{ncsimplebnf}
|
1615 | 1619 | causes the implementation to produce
|
1616 |
| -a diagnostic message that should include the specified sequence of preprocessing tokens, |
1617 |
| -and renders the program ill-formed. |
| 1620 | +a diagnostic message that should include the specified sequence of preprocessing tokens; |
| 1621 | +the \tcode{\# error} directive renders the program ill-formed. |
1618 | 1622 |
|
1619 | 1623 | \rSec1[cpp.pragma]{Pragma directive}%
|
1620 | 1624 | \indextext{preprocessing directive!pragma}%
|
|
0 commit comments