From: Jan Hubicka Date: Tue, 28 Apr 2015 14:13:59 +0000 (+0200) Subject: * g++.dg/tree-ssa/pr61034.C: Add temporary; fix template. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d8a9f7c660b9873d1e7d5662f82fb5c30cc1e9e;p=gcc.git * g++.dg/tree-ssa/pr61034.C: Add temporary; fix template. From-SVN: r222527 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fcd850ce456..d38593d1d32 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-04-28 Jan Hubicka + + * g++.dg/tree-ssa/pr61034.C: Add temporary; fix template. + 2015-04-28 Marek Polacek PR c/65901 diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr61034.C b/gcc/testsuite/g++.dg/tree-ssa/pr61034.C index 91e694eae14..b025b68eaa0 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr61034.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr61034.C @@ -34,7 +34,8 @@ inline I operator- (I a, I const&b) { return a -= b; } inline bool operator< (I const&a, I const&b) { return a.o->num < b.o->num; } bool f(I a, I b, I c, I d) { - return (a * d - b * c) * (a * b - c * d) < 42; + I tmp = (a * d - b * c) * (a * b - c * d); + return tmp < 42; } // We should be able to CSE most references to count and thus remove