This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53462] template method constant folding division-by-zero warning within dead code
- From: "rudick at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 23 May 2012 18:27:43 +0000
- Subject: [Bug c++/53462] template method constant folding division-by-zero warning within dead code
- Auto-submitted: auto-generated
- References: <bug-53462-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53462
--- Comment #2 from rudick at gmail dot com 2012-05-23 18:27:43 UTC ---
It looks related, but are you sure its a duplicate (if the fix was to turn
off all such warnings)?
I.e., if the code weren't made dead by being short-circuited by " if (I
&&", the warning would be appropriate & helpful.
On Wed, May 23, 2012 at 11:10 AM, paolo.carlini at oracle dot com <
gcc-bugzilla@gcc.gnu.org> wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53462
>
> Paolo Carlini <paolo.carlini at oracle dot com> changed:
>
> What |Removed |Added
>
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |RESOLVED
> CC|rikaigcc at rikai dot com |
> Resolution| |DUPLICATE
>
> --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com>
> 2012-05-23 18:10:57 UTC ---
> This is fixed in mainline by the patch which fixed PR11856
>
> *** This bug has been marked as a duplicate of bug 11856 ***
>
> --
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
> You reported the bug.
>