This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67866] False positive -Wshift-count-overflow on template code that checks for shift count overflow
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Oct 2015 12:41:47 +0000
- Subject: [Bug c++/67866] False positive -Wshift-count-overflow on template code that checks for shift count overflow
- Auto-submitted: auto-generated
- References: <bug-67866-4 at http dot gcc dot gnu dot org/bugzilla/>
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.