https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78208
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- I think the compile-hog would also be visible with -Wduplicated-branches, but that's not in yet (and it's unclear whether it will make its way in to GCC 7).