[Bug c++/44648] missing -Wunused warning on a const variable in if statement

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Tue Oct 18 10:47:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44648

--- Comment #3 from rguenther at suse dot de <rguenther at suse dot de> 2011-10-18 10:46:18 UTC ---
On Tue, 18 Oct 2011, paolo.carlini at oracle dot com wrote:

> 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)' ?

C++ FE



More information about the Gcc-bugs mailing list