https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79585
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Known to fail| |4.1.3, 4.2.2, 4.3.2, 4.6.0, | |5.3.0, 6.3.0, 7.0 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- The same spurious warning goes at least as far back as GCC 4. Clang doesn't have the problem.