https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67866
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2015-10-06 Ever confirmed|0 |1 Severity|normal |enhancement --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- The warning occurs in the "dead" code region. Not sure, but maybe template substitution can mark "obviously" dead regions with TREE_NO_WARNING? This is an issue for other warnings as well.