This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61240] [4.9/5/6 Regression] Incorrect warning "integer overflow in expression" on pointer-pointer subtraction
- From: "divyajyotidas15 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Jun 2015 22:49:06 +0000
- Subject: [Bug c/61240] [4.9/5/6 Regression] Incorrect warning "integer overflow in expression" on pointer-pointer subtraction
- Auto-submitted: auto-generated
- References: <bug-61240-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61240
Divya Jyoti Das <divyajyotidas15 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |divyajyotidas15 at gmail dot com
--- Comment #12 from Divya Jyoti Das <divyajyotidas15 at gmail dot com> ---
(In reply to Marek Polacek from comment #7)
> But C++ has its own pointer_diff version that doesn't do such optimization.
> With my change the C FE would generate the same expr as the C++ FE. And FEs
> shouldn't perform such optimizations anyway.