This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11076] New: ICE with invalid base class
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2003 09:35:59 -0000
- Subject: [Bug c++/11076] New: ICE with invalid base class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11076
Summary: ICE with invalid base class
Product: gcc
Version: 3.4
Status: NEW
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
CC: gcc-bugs@gcc.gnu.org
This is fallout from PR5702:
The following code crashes gcc 2.95.x - 3.3 and mainline:
----------------------------------------------------------------
template<typename, typename T=void> struct A
{
typedef A<T,T> B;
};
template <typename T> struct C
{
typedef typename A<T>::B X;
X::Y;
};
C<void> c;
----------------------------------------------------------------
The error message on mainline is:
pr5702.cc: In instantiation of `C<void>':
pr5702.cc:12: instantiated from here
pr5702.cc:9: internal compiler error: tree check: accessed elt 2 of tree_vec
with 1 elts in tsubst, at cp/pt.c:6697
Please submit a full bug report,
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.