This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16706] [3.4/3.5 Regression] ICE in finish_member_declaration, at cp/semantics.c:2126
- 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: 26 Jul 2004 03:18:01 -0000
- Subject: [Bug c++/16706] [3.4/3.5 Regression] ICE in finish_member_declaration, at cp/semantics.c:2126
- References: <20040725152539.16706.debian-gcc@lists.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-07-26 03:18 -------
Here's something slightly smaller:
===============================================================
template<typename> struct A
{
A();
template<typename> struct X {};
};
template<typename T> struct B
{
typename A<T>::template X<int> x;
template<typename> struct C;
};
template<typename T> template<typename U> struct B<T>::C<U*>
{
C() {}
A<int> a;
};
template struct B<int>::C<int*>;
===============================================================
Note that the ICE in Wolfgang's and this example happens in a different
place than the original example.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16706