[Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 3 02:26:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12495
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nathan at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code, ice-on-
| |valid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-10-03 02:26:25
date| |
Summary|[REGRESSION] ICE in |[3.4 Regression] ICE in
|cp/typeck.c:907 |cp/typeck.c:907
Target Milestone|--- |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-03 02:26 -------
The shown is invalid but this valid code:
template <class T>
class Array {};
template <class T>
class IteratorImpl {};
template <class T>
class Iterator {
public:
Iterator (const IteratorImpl<T>* x) { delete x; }
};
template <class T>
Iterator<T> iterator (const Array<T>& t)
{
struct Impl : public IteratorImpl<T> {
Array<T> _a;
Impl (const Array<T>& a)
: _a(a) {}
~Impl() {}
};
return Iterator<T>(new Impl());
}
Does the same ICE, this is most likely the same as bug 2513.
>From Phil's regression hunter: Search converges between 2003-06-23-trunk (#322) and 2003-
06-24-trunk (#323).
Might have been caused by <http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02744.html>
which is the only patch which touched comptypes during that time period.
More information about the Gcc-bugs
mailing list