This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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>();
}
=============================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]