16 Preprocessing directives [cpp]

16.5 Error directive [cpp.error]

A preprocessing directive of the form

# error pp-tokensopt new-line

causes the implementation to produce a diagnostic message that includes the specified sequence of preprocessing tokens, and renders the program ill-formed.