This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
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