behavior, upon use of a nonportable or erroneous program construct or of erroneous data, for which this International Standard imposes no requirements.
이게 정의 인 것 같은데.
국제 표준에서 요구하지 않은 걸 부과하는 이식이 안되거나, 잘못된 프로그램 구조거나, 잘못된 데이터의 사용
해석이 잘못 된 것 같은데...
표준에서 undefined behavior라고 지정한 게 있는건지. 아님 정의하지 않은 것들인지 헷갈려요.
추가적인 설명이 있는데
NOTE Possible undefined behavior ranges from ignoring the situation completely with unpredictable results, to behaving during traslation or program execution in a documented manner characteristic of the environment (with or without the issuance of a diagnostic message), to terminating a translation or execution (with the issuance of a diagnostic message).
EXAMPLE An example of undefined behavior is the behavior on integer overflow.
이것저것 고려해 본 결과, 정리를 해보았는데
undefined behavior : 정의되어 있지 않은 행동. 컴파일러에 의해 예기치 못한 행동이 생길 수 있다.(이식이 안되거나 잘못된 프로그램 구조가 되거나 잘못된 데이터.....(를 사용한다는 건지, ~가 된다는 건지..) )
아무래도 설명이 미흡하네요.
조언 부탁드리겠습니다.
댓글 0