The following code compiles without error and runs without segmentation fault:

```
int* a = 0;
int& b = *a;

```

We do have a nullpointer in the reference. This reference may be moved in the project for a while until it gets used. When it gets used it will produce a segmentation fault.

The currently used compilers are MSVC 10.0 and gcc 4.9.
To ease the finding of the error I want the dereferencing to fail on nullpointers so that the segmentation fault is caused in the above code. Is it possible to achieve this and how?