This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44648] missing -Wunused warning on a const variable in if statement
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Oct 2011 10:14:57 +0000
- Subject: [Bug c++/44648] missing -Wunused warning on a const variable in if statement
- Auto-submitted: auto-generated
- References: <bug-44648-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44648
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|gcc-bugs at gcc dot gnu.org |rguenth at gcc dot gnu.org
Known to fail| |
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-18 10:14:57 UTC ---
Is this also a middle-end issue? Or the C++ front end is failing to do
something important when it sees 'if (const bool b = 1)' ?