This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12924] [3.4 regression] ICE in lookup_member, at cp/search.c:1228
- 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: 6 Nov 2003 17:35:30 -0000
- Subject: [Bug c++/12924] [3.4 regression] ICE in lookup_member, at cp/search.c:1228
- References: <20031106092747.12924.rguenth@tat.physik.uni-tuebingen.de>
- 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=12924
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-11-06 17:35 -------
Ok. Here's a version with valid code:
=============================================
template<typename> struct A
{
template<typename> void foo() {}
};
template<> struct A<void>
{
template<typename T> void foo()
{
A<T> a;
a.template foo<int>();
}
};
void bar()
{
A<void> a;
a.foo<int>();
}
=============================================