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


DJ Delorie <dj@redhat.com> writes:

| > I don't think there's anything C99-specific here; you should check C90, or
| > add the testcase to the testsuite and wait for Zack's rewrite to deal with
| > this.
| 
| Hmmm... my 1989 quick reference seems to imply it as well.  The next
| question is... is this a case where we want to emit the message
| anyway, unless pedantic?  If not, we can just remove that whole chunk
| of code.

I don't think we want to emit that diagnostic for this particular
case.  But, we might want to for

     extern int a;

   // ...

     static int a;

at file scope.

-- Gaby
    



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