template memory
Jason Merrill
jason@cygnus.com
Wed Oct 1 10:30:00 GMT 1997
>>>>> Joe Buck <jbuck@synopsys.com> writes:
> At the risk of asking a stupid question:
> OK, let's say someone twisted your arm and said that you *must* free
> memory for a template instantiation after you generate it, unless it
> is an inline function. What breaks? Why can't you just generate a
> weak symbol immediately?
Actually, the earlier discussion was misleading; in fact, only inlines are
kept around. Non-inlines aren't implicitly instantiated until end of file,
at which point we know what to do with them.
Jason
More information about the Gcc
mailing list