This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53239] [4.7 Regression] -ftree-vrp breaks min()
- From: "proski at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 May 2012 21:43:11 +0000
- Subject: [Bug c++/53239] [4.7 Regression] -ftree-vrp breaks min()
- Auto-submitted: auto-generated
- References: <bug-53239-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53239
--- Comment #1 from proski at gnu dot org 2012-05-04 21:43:11 UTC ---
Created attachment 27310
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27310
Example (made on i386)
This line is miscompiled:
next = min (next, it->pending_moment ());
The result of comparison in min() is unused unless the -fno-tree-vrp option is
used.