This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] problem with static variables in template functions
- To: egcs-patches at cygnus dot com
- Subject: Re: [PATCH] problem with static variables in template functions
- From: TYann at vet dot com dot au (Trevor Yann)
- Date: Wed, 12 Aug 1998 09:07:29 +1000
- Organization: Cybec
I'm not sure that this patch is correct. The default linkage for an
inline function is internal, rather than external.
Inline functions with internal linkage are allowed (required?) to have a
different instance of any local static variables for each translation
unit that uses the function.