This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34486] New: [4.1/4.2/4.3 regression] ICE invalid using declaration
- 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: 15 Dec 2007 22:28:36 -0000
- Subject: [Bug c++/34486] New: [4.1/4.2/4.3 regression] ICE invalid using declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid testcase triggers an ICE since GCC 4.1.0:
==============================
template<typename> struct A
{
typedef A* X;
};
template<typename T> struct B
{
using A<T>::X::Y;
};
B<int> b;
==============================
bug.cc: In instantiation of 'B<int>':
bug.cc:11: instantiated from here
bug.cc:8: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
--
Summary: [4.1/4.2/4.3 regression] ICE invalid using declaration
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34486