[cfe-commits] r78266 - /cfe/trunk/test/CXX/class/class.nest/p1.cpp

John McCall rjmccall at apple.com
Wed Aug 5 17:51:02 PDT 2009


Author: rjmccall
Date: Wed Aug  5 19:50:46 2009
New Revision: 78266

URL: http://llvm.org/viewvc/llvm-project?rev=78266&view=rev
Log:
AlisdairM pointed out that this will likely be relaxed in C++0x, so let's
make a note of it in the test case.


Modified:
    cfe/trunk/test/CXX/class/class.nest/p1.cpp

Modified: cfe/trunk/test/CXX/class/class.nest/p1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/class/class.nest/p1.cpp?rev=78266&r1=78265&r2=78266&view=diff

==============================================================================
--- cfe/trunk/test/CXX/class/class.nest/p1.cpp (original)
+++ cfe/trunk/test/CXX/class/class.nest/p1.cpp Wed Aug  5 19:50:46 2009
@@ -4,6 +4,9 @@
   int x;
   static int sx;
 
+  // C++0x will likely relax this rule in this specific case, but
+  // we'll still need to enforce it in C++03 mode.  See N2253 (or
+  // successor).
   class Inner {
     static char a[sizeof(x)]; // expected-error {{ invalid use of nonstatic data member 'x' }}
     static char b[sizeof(sx)]; // okay





More information about the cfe-commits mailing list