https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79572
--- Comment #9 from janus at gcc dot gnu.org ---
(In reply to Richard Biener from comment #8)
> Btw, clang behaves the same:
True. But at least clang 3.9 has some additional diagnostics:
null_ref.cpp:11:5: warning: binding dereferenced null pointer to reference has
undefined behavior [-Wnull-dereference]
f(*((int*) NULL));
^~~~~~~~~~~~~~
Ideally GCC should yield the same warning, and maybe even turn it into an error
with -std=c++14, as opposed to -std=gnu++14 ?