[cfe-commits] r67336 - in /cfe/trunk: include/clang/AST/Decl.h lib/Sema/SemaDecl.cpp test/Sema/tentative-decls.c test/Sema/var-redecl.c

Eli Friedman eli.friedman at gmail.com
Fri Mar 20 16:58:37 PDT 2009


On Thu, Mar 19, 2009 at 3:01 PM, Douglas Gregor <dgregor at apple.com> wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=67336&view=rev
> Log:
> Variables marked as "extern" can actually have internal linkage if
> there is a previous declaration marked "static". This fixes PR3645.

Minor issue: the following should print a diagnostic (see 6.2.2p5):

static int x; int x;

-Eli



More information about the cfe-commits mailing list