19 Preprocessing directives [cpp]

19.5 Error directive [cpp.error]

A preprocessing directive of the form

# error pp-tokens new-line

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