Commit a1b1b3cd by Andrew Pinski Committed by Andrew Pinski

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
parent a8c2c492
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> 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
PR tree-optimization/16632 PR tree-optimization/16632
......
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" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment