An error that is generated during the compilation phase, often due to problems with invalid syntax and/or types. Compare to [runtime-error].