This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Name resolution bug with templated classes and functions
- To: Hans Utz <hans dot utz at student dot uni-ulm dot de>
- Subject: Re: Name resolution bug with templated classes and functions
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at dptmaths dot ens-cachan dot fr>
- Date: 16 Nov 1998 08:01:59 +0100
- Cc: egcs-bugs at cygnus dot com
- References: <364F6352.61C0D0C@student.uni-ulm.de>
>>>>> «Hans», Hans Utz <hans.utz@student.uni-ulm.de> wrote:
Hans> This little program produces an internal compiler error.
Hans> template<class T>
Hans> struct c1
Hans> {
Hans> };
Hans> template<class T>
Hans> struct c2 {
Hans> void c1() {}
Hans> };
Hans> template<class T>
Hans> void foo(T)
Hans> {
Hans> c2<T> bar;
Hans> bar.c1();
Hans> };
Hans> int main (char*, char**)
Hans> {
Hans> foo(1);
Hans> return 0;
Hans> }
Hans> I´m using egcs-2.91.57 coming with the 1.1b release
Hans> on a Linx 2.0.32 PC.
this problem seems to be fixed in egcs-2.92.18 (on a SPARCStation)
-- Gaby