This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug with templates and operator[]
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Re: Bug with templates and operator[]
- From: Brian Ryner <bryner at uiuc dot edu>
- Date: Thu, 13 May 1999 19:49:00 -0500
- References: <373B64BA.8A823060@uiuc.edu>
Oops--
Sooner or later I'll learn to read a FAQ.
But, the FAQ was a little unclear as to current status of things... is
there a switch in egcs 1.1.2 to enable automatic template
instantiation? Or is it a separate patch, or what?
Thanks.
Brian Ryner wrote:
>
> Here's the compiler output:
> test2.o: In function `main':
> test2.o(.text+0xd): undefined reference to `Array<int>::operator[](int)'
> collect2: ld returned 1 exit status
>