>That is not an exception to the meaning of undefined behavior. The
There are some exceptions to incurring UB for dereferencing a
nullpointer. The most important one is that any given compiler vendor
can decide to give that a well-defined meaning at compile time for that
compiler, and exploit that to implement various macros in the standard
library.
language definition says that certain things result in undefined
behavior, and that means that the language definition doesn't tell you
what those things do. The possiblity that a particular compiler vendor
makes some of those things well defined doesnt change the fact that the
language definition doesn't impose requirements. The behavior is still
undefined.
--
Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The
Standard C++ Library Extensions: a Tutorial and Reference
(www.petebecker.com/tr1book)