[Bug c++/17797] [3.3/3.4/4.0 Regression] ICE in build_reinterpret_cast
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 2 22:04:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-02 22:04 -------
Confirmed, reduced testcase:
typedef int PyObject;
typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
template<class T> int _clear(PyObject* self);
void _typeInfo()
{
reinterpret_cast<PyCFunction>(_clear);
}
So this is invalid code.
: Search converges between 2001-07-22-trunk (#29) and 2001-07-29-trunk (#30).
This used to work in 3.0.4
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |error-recovery, ice-on-
| |invalid-code
Known to fail| |3.4.0 4.0.0
Known to work| |3.0.4
Last reconfirmed|0000-00-00 00:00:00 |2004-10-02 22:04:39
date| |
Summary|ICE in |[3.3/3.4/4.0 Regression] ICE
|build_reinterpret_cast |in build_reinterpret_cast
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17797
More information about the Gcc-bugs
mailing list