[cfe-commits] r86165 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/CXX/dcl.decl/dcl.meaning/dcl.array/p1.cpp test/SemaCXX/dependent-types.cpp

Douglas Gregor dgregor at apple.com
Thu Nov 5 12:00:42 PST 2009


On Nov 5, 2009, at 11:47 AM, Sebastian Redl wrote:

> Author: cornedbee
> Date: Thu Nov  5 13:47:47 2009
> New Revision: 86165
>
> URL: http://llvm.org/viewvc/llvm-project?rev=86165&view=rev
> Log:
> Don't allow definitions of array variables without some size  
> information in C++. Fixed PR5401

It's probably worth testing cases involving static data members, such as

   struct X {
     static int a[];
   };

   int X::a[17];

and perhaps the template variables thereof:

   template<typename T>
   struct X {
     static T a[];
   };

   template<typename T>
   T X<T>::a[17];

checking when those are instantiated, specialized, etc.

	- Doug




More information about the cfe-commits mailing list