diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/overload8.C | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index be9f577..79357f0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 1998-12-03 Alexandre Oliva <oliva@dcc.unicamp.br> + * g++.old-deja/g++.pt/overload8.C: New test. + * g++.old-deja/g++.pt/overload7.C: New test. * g++.old-deja/g++.pt/spec20.C: ERROR marks were bogus diff --git a/gcc/testsuite/g++.old-deja/g++.pt/overload8.C b/gcc/testsuite/g++.old-deja/g++.pt/overload8.C new file mode 100644 index 0000000..9f38a5c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/overload8.C @@ -0,0 +1,12 @@ +// Build don't link: + +// Simplified from bug report by Tim Rowley <tor@cs.brown.edu> + +struct baz; + +void operator*(baz&, double); + +template <class T> inline T operator*(double s, const T &p) + ; // gets bogus error - must have argument of class type - XFAIL *-*-* + +void m(baz& a) { a * .5; } |