[cfe-commits] r106813 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Fariborz Jahanian fjahanian at apple.com
Thu Jun 24 17:05:46 PDT 2010


Author: fjahanian
Date: Thu Jun 24 19:05:45 2010
New Revision: 106813

URL: http://llvm.org/viewvc/llvm-project?rev=106813&view=rev
Log:
Add comment for my last patch.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=106813&r1=106812&r2=106813&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Thu Jun 24 19:05:45 2010
@@ -1454,7 +1454,13 @@
     New->setInvalidDecl();
     return;
   }
-
+  // c99 6.2.2 P4.
+  // For an identifier declared with the storage-class specifier extern in a
+  // scope in which a prior declaration of that identifier is visible, if 
+  // the prior declaration specifies internal or external linkage, the linkage 
+  // of the identifier at the later declaration is the same as the linkage 
+  // specified at the prior declaration.
+  // FIXME. revisit this code.
   if (New->hasExternalStorage() &&
       Old->getLinkage() == InternalLinkage &&
       New->getDeclContext() == Old->getDeclContext())





More information about the cfe-commits mailing list