Possible Duplicate:
When does invoking a member function on a null instance result in undefined behavior?
I just read this question with an excellent answer: When does invoking a member function on a null instance result in undefined behavior?
Basically, is the following code undefined behaviour?
struct foo { static void bar() { } };
foo *p = nullptr;
p->bar();
According to the linked post, this can be interpreted in different ways one being UB and one being not.
In C++0x, as of n3126, the ambiguity remains
Does this still hold with final C++11?