re PR c++/17797 (ICE in build_reinterpret_cast)

2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17797
        * g++.dg/overload/template2.C: New test.

From-SVN: r88458
This commit is contained in:
Andrew Pinski 2004-10-03 18:17:52 +00:00 committed by Andrew Pinski
parent a8c2c49233
commit a1b1b3cd6d
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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" }
}