Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 3/22/2024
Public
Document Table of Contents

Syntactic and Semantic Errors

The compiler sends messages about syntactic and semantic misuse of C or C++, along with the erroneous source line, to stderr.

These error messages suppress object code for the module containing the error and prevent linking, but they allow parsing to continue to detect other possible errors.

The following are some representative syntactic and semantic messages:

expected ';' at end of declaration
unexpected type name 'b': expected expression

For a list of Clang diagnostics options, see Diagnostic flags in Clang.