This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SCO experiences
- To: bw at student dot ecok dot edu (Bill Walker), egcs at cygnus dot com
- Subject: Re: SCO experiences
- From: Jason Merrill <jason at cygnus dot com>
- Date: 03 Oct 1997 08:11:37 -0700
- References: <m0xH7GY-0000NWC.cygnus.egcs@student.ecok.edu>
>>>>> Bill Walker <bw@student.ecok.edu> writes:
> Experience 4:
> Under g++, I found something I think should work, but doesn't under any
> compiler I have ever found, including this one.
> Suppose I wish to create a template, say of an array:
> template.h <--- contains the template class definition
> template.cc <-- contains "generic" code
> main.cc <-- "fills in the blank type" and instantiates the template
> main.cc #includes template.h, and template.cc #includes template.h
> The compile will fail. I really don't believe it should.
g++ doesn't support separate compilation of templates.
Jason