https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70808
Jaak Ristioja <jaak at ristioja dot ee> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jaak at ristioja dot ee --- Comment #1 from Jaak Ristioja <jaak at ristioja dot ee> --- A minimum example I've found for this is: void f() { decltype(nullptr)(); } With -std=c++11 the warning is emitted in versions 4.8.5, 4.9.3, 5.3.0, 5.4.0 and 6.2.0, but not in 4.7.4.