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

ID 767253
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Error Handling

This topic describes compiler warnings and errors. The compiler sends these messages, along with the erroneous source line, to stderr.

Errors

Error messages report syntactic or semantic misuse of C or C++. The compiler always displays error messages. Errors 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 error messages:

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

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