diff --git a/gcc/testsuite/g++.old-deja/g++.martin/sts_conv.C b/gcc/testsuite/g++.old-deja/g++.martin/sts_conv.C index 4a3a436fe79..9f06c952d44 100644 --- a/gcc/testsuite/g++.old-deja/g++.martin/sts_conv.C +++ b/gcc/testsuite/g++.old-deja/g++.martin/sts_conv.C @@ -14,7 +14,7 @@ private: int main(){ CArray a; - double *pa = a + 1; // gets bogus error - should convert + double *pa = a + 1; // gets bogus error - should convert - XFAIL return 0; } diff --git a/gcc/testsuite/g++.old-deja/g++.martin/sts_iarr.C b/gcc/testsuite/g++.old-deja/g++.martin/sts_iarr.C index c05fb16034e..a2b63b82a3c 100644 --- a/gcc/testsuite/g++.old-deja/g++.martin/sts_iarr.C +++ b/gcc/testsuite/g++.old-deja/g++.martin/sts_iarr.C @@ -8,13 +8,13 @@ struct Outer{ Inner(int n): sum(n){} typename Outer::Inner operator[](int n) const - { return Outer::Inner(sum + n); } + { return typename Outer::Inner(sum + n); } int sum; }; typename Outer::Inner operator[](int n) const - { return Outer::Inner(n); } + { return typename Outer::Inner(n); } };