diff options
| author | John McCall <rjmccall@apple.com> | 2009-08-06 00:50:46 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2009-08-06 00:50:46 +0000 |
| commit | 9de556c8b6c3f66cd21157754029c3ea13c9d7e5 (patch) | |
| tree | 5bc9e1912f3f1efd644f014cf22e11ab123c1ab3 /clang/test/CXX/class/class.nest/p1.cpp | |
| parent | 2509480813c5e1bc3c0a471f982f697db9d4c0ee (diff) | |
| download | bcm5719-llvm-9de556c8b6c3f66cd21157754029c3ea13c9d7e5.tar.gz bcm5719-llvm-9de556c8b6c3f66cd21157754029c3ea13c9d7e5.zip | |
AlisdairM pointed out that this will likely be relaxed in C++0x, so let's
make a note of it in the test case.
llvm-svn: 78266
Diffstat (limited to 'clang/test/CXX/class/class.nest/p1.cpp')
| -rw-r--r-- | clang/test/CXX/class/class.nest/p1.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CXX/class/class.nest/p1.cpp b/clang/test/CXX/class/class.nest/p1.cpp index 49e1bd23539..bbc49f9e95e 100644 --- a/clang/test/CXX/class/class.nest/p1.cpp +++ b/clang/test/CXX/class/class.nest/p1.cpp @@ -4,6 +4,9 @@ class Outer { 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 |

