This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Precompiled headers and General Parsing of Header File
- To: kevina at clark dot net (Kevin Atkinson), egcs at cygnus dot com
- Subject: Re: Precompiled headers and General Parsing of Header File
- From: Jason Merrill <jason at cygnus dot com>
- Date: 30 Jul 1998 11:12:10 -0700
- References: <3909596616.901557761@FORBESFIELD.INI.CMU.EDU> <35BEDDA5.8CA7C4F6.cygnus.egcs@clark.net>
>>>>> Kevin Atkinson <kevina@clark.net> writes:
> Also have you considered the idea of not fully parsing the header files
> with template information in it ot help speed up compiling of code that
> uses the STL.
> By not fully parsing the header file I mean skipping over the
> class/functions definitions. For example:
Actually, g++ used to work this way. I changed that in '96 so that
templates would actually work properly; trying to feed stuff back to the
parser is very tricky with a non-reentrant parser, and the semantics are
wrong anyway. The standard specifies that names which do not depend on a
template argument are bound at the point of the template definition.
Jason