Michael Stefaniuc mstefani@redhat.com wrote:
On 12/10/2012 07:37 PM, Amine Khaldi wrote:
This prevents the undefined behavior (null pointer dereference) diagnostics (clang with ubsan checks for example).
This is a bug in clang. There is no null pointer dereference. Afair gcc tried to pull this trick too but got educated about their error.
What's an advantage of these patches except of catering broken compilers/ checkers?