[Bug c++/12924] [3.4 regression] ICE in lookup_member, at cp/search.c:1228

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Nov 6 17:35: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=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>();
}
=============================================



More information about the Gcc-bugs mailing list