[PATCH] Sema: Static redeclaration after extern declarations is a Microsoft Extension

David Majnemer david.majnemer at gmail.com
Sun Jun 15 12:42:56 PDT 2014


Hi rsmith,

CL permits static redeclarations to follow extern declarations.  The
storage specifier on the latter declaration has no effect.

This fixes PR20034.

http://reviews.llvm.org/D4149

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaDecl.cpp
  test/Misc/warning-flags.c
  test/Sema/private-extern.c
  test/Sema/tentative-decls.c
  test/Sema/thread-specifier.c
  test/Sema/var-redecl.c
  test/SemaCXX/MicrosoftExtensions.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4149.10428.patch
Type: text/x-patch
Size: 11878 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140615/14a2b7ca/attachment.bin>


More information about the cfe-commits mailing list