https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80397
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- Author: msebor Date: Mon Jul 10 21:21:51 2017 New Revision: 250106 URL: https://gcc.gnu.org/viewcvs?rev=250106&root=gcc&view=rev Log: PR tree-optimization/80397 - missing -Wformat-overflow with arguments of enum types gcc/ChangeLog: PR tree-optimization/80397 * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P() instead of testing for equality to INTEGER_TYPE. gcc/testsuite/ChangeLog: PR tree-optimization/80397 * gcc.dg/tree-ssa/builtin-sprintf-warn-17.c: New test. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-19.c Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-ssa-sprintf.c trunk/gcc/testsuite/ChangeLog