diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-03 18:17:52 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-03 18:17:52 +0000 |
commit | 13a3ded62f6d2d78e95a48f75d5e55fea81c3c2c (patch) | |
tree | 93ccf41444a72be2f6022474d32f8db3e5e80c9b /gcc | |
parent | 4154c014ead28a714058d92eb89e13f77ad7e5b2 (diff) | |
download | gcc-13a3ded62f6d2d78e95a48f75d5e55fea81c3c2c.tar.gz |
2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/17797
* g++.dg/overload/template2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88458 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/overload/template2.C | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ac4ecfd20c0..02dec9c340c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-10-03 Andrew Pinski <pinskia@physics.uc.edu> + + PR c++/17797 + * g++.dg/overload/template2.C: New test. + 2004-10-03 Kazu Hirata <kazu@cs.umass.edu> PR tree-optimization/16632 diff --git a/gcc/testsuite/g++.dg/overload/template2.C b/gcc/testsuite/g++.dg/overload/template2.C new file mode 100644 index 00000000000..e7bdaa74b8c --- /dev/null +++ b/gcc/testsuite/g++.dg/overload/template2.C @@ -0,0 +1,8 @@ +typedef int PyObject; +typedef PyObject *(*PyCFunction)(PyObject *, PyObject *); +template<class T> int _clear(PyObject* self); + +void _typeInfo() +{ + reinterpret_cast<PyCFunction>(_clear); // { dg-error "overloaded function" } +} |