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]

Re: Bug with templates and operator[]


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
>


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