noun
semantic error
Computing term for an error where the code is syntactically correct but logically wrong, such as using a variable incorrectly or misunderstanding the meaning of an operation.
コンパイルは通ったが、セマンティックエラーでプログラムが正しく動かない。
It compiled, but a semantic error prevents the program from running correctly.
A syntax error violates the grammar rules of the programming language, while a semantic error is logically incorrect despite valid syntax.
A runtime error occurs during execution (e.g., division by zero), whereas a semantic error may not crash the program but produces wrong results.
Variant with interpunct; less common but still seen in technical writing.
Borrowed from English 'semantic error', a compound of 'semantic' (relating to meaning) and 'error'.