https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41874
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Aso Renji from comment #13) > Still have same problem in g++ 6.3.0. So, please reopen this bug. What do you mean by "same problem"? The original testcase does not produce a warning with GCC 6.3.0 If you get a warning for a different piece of code then please open a new bug, this one is fixed.