[Bug c++/12495] New: [REGRESSION] ICE in cp/typeck.c:907
raimond_merkert at raytheon dot com
gcc-bugzilla@gcc.gnu.org
Fri Oct 3 01:29: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
Summary: [REGRESSION] ICE in cp/typeck.c:907
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: raimond_merkert at raytheon dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: g++ (GCC) 3.4 20031001 (experimental)
The following code produces an ICE in 3.4
cat > test.cpp <<EOF
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> {
Impl (const Array<T>& a)
: _a(a) {}
~Impl() {}
};
return Iterator(new Impl());
}
EOF
g++ test.cpp -c
test.cpp: In function `Iterator<T> iterator(const Array<T>&)':
test.cpp:19: internal compiler error: in comptypes, at cp/typeck.c:907
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This may actually be a duplicate of 2513, but I don't know.
This is the one bug that's kept me from being able to use 3.4 for quite some time.
Compiles fine with 3.3.1 so this is a regression.
More information about the Gcc-bugs
mailing list