diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 |
3 files changed, 11 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7c5ae834cfd..cc4fce11d63 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2009-01-05 Dodji Seketeli <dodji@redhat.com> + + PR c++/38472 + * typeck.c (type_after_usual_arithmetic_conversions): Fix a typo. + 2009-01-05 Jason Merrill <jason@redhat.com> PR c++/38701 diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index ed01c511f3c..4be7a258355 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -403,7 +403,7 @@ type_after_usual_arithmetic_conversions (tree t1, tree t2) /* Perform the integral promotions. We do not promote real types here. */ if (INTEGRAL_OR_ENUMERATION_TYPE_P (t1) - && INTEGRAL_OR_ENUMERATION_TYPE_P (t1)) + && INTEGRAL_OR_ENUMERATION_TYPE_P (t2)) { t1 = type_promotes_to (t1); t2 = type_promotes_to (t2); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 46d2881e5a8..f401ff5e03a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-01-05 Dodji Seketeli <dodji@redhat.com> + + PR c++/38472 + * g++.dg/conversion/usual-arith-conv.C: New test. + 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com> PR c/34911 |