Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
What exactly must a C compiler do when it finds a compile-time error? The most obvious kind of errors are language syntax errors, but the C standard also speaks of constraints, which are rules tha...
#2: Post edited
What must a C compiler do when it finds an error?
- What exactly must a C compiler do when it finds a compile-time error?
The most obvious kind of errors are language syntax errors, but the C standard also speaks of _constraints_, which are rules that a C program are not allowed to break. Doing so is a so-called _constraint violation_.- Upon finding syntax errors or constraint violations, must the compiler produce a compiler error message? A warning message? Is it allowed to create a binary executable despite finding such errors?
- What exactly must a C compiler do when it finds a compile-time error?
- The most obvious kind of errors are language syntax errors, but the C standard also speaks of _constraints_, which are rules that a C program is not allowed to break. Doing so is a so-called _constraint violation_.
- Upon finding syntax errors or constraint violations, must the compiler produce a compiler error message? A warning message? Is it allowed to create a binary executable despite finding such errors?
#1: Initial revision
What must a C compiler do when it finds an error?
What exactly must a C compiler do when it finds a compile-time error? The most obvious kind of errors are language syntax errors, but the C standard also speaks of _constraints_, which are rules that a C program are not allowed to break. Doing so is a so-called _constraint violation_. Upon finding syntax errors or constraint violations, must the compiler produce a compiler error message? A warning message? Is it allowed to create a binary executable despite finding such errors?