This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Name resolution bug with templated classes and functions
- To: egcs-bugs at cygnus dot com
- Subject: Name resolution bug with templated classes and functions
- From: Hans Utz <hans dot utz at student dot uni-ulm dot de>
- Date: Mon, 16 Nov 1998 00:27:14 +0100
This little program produces an internal compiler error.
template<class T>
struct c1
{
};
template<class T>
struct c2 {
void c1() {}
};
template<class T>
void foo(T)
{
c2<T> bar;
bar.c1();
};
int main (char*, char**)
{
foo(1);
return 0;
}
I´m using egcs-2.91.57 coming with the 1.1b release
on a Linx 2.0.32 PC.
I found this problem within the LEDA-3.7.1 class library.
Hans