This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [RFC:patch] c99 6.2.2: static vs extern


Geoff Keating <geoffk@geoffk.org> writes:

| No.  It means that if you declare it 'static' or don't supply a
| specifier, paragraph 4 does not apply (except see paragraph 5 for
| function types).  In particular,
| 
| extern int i;
| static int i;
| 
| is not valid C, and neither is
| 
| static int i;
| int i;

I think he said, we're already rejecting those.  What he wasn't sure
about (AFAIU) is

   static int i;
   int main(void)
   {
     extern int i;
   }

-- Gaby


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