summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-static-var.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-12-29 21:57:33 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-12-29 21:57:33 +0000
commite434590bd90df6dd0117f8cee2c84716c25ab1c2 (patch)
treee729bcc69dbff1728d8e3b6b8df53d354fae0121 /clang/test/SemaTemplate/instantiate-static-var.cpp
parent4ea99816eff6e2799ab20eec17630c4ac534db5f (diff)
downloadbcm5719-llvm-e434590bd90df6dd0117f8cee2c84716c25ab1c2.tar.gz
bcm5719-llvm-e434590bd90df6dd0117f8cee2c84716c25ab1c2.zip
Change the diagnostics which said 'accepted as an extension' to instead say
'is an extension'. The former is inappropriate and confusing when building with -Werror/-pedantic-errors. llvm-svn: 147357
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-static-var.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-static-var.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/SemaTemplate/instantiate-static-var.cpp b/clang/test/SemaTemplate/instantiate-static-var.cpp
index d2b0459ccc5..f309f29eafa 100644
--- a/clang/test/SemaTemplate/instantiate-static-var.cpp
+++ b/clang/test/SemaTemplate/instantiate-static-var.cpp
@@ -2,7 +2,7 @@
template<typename T, T Divisor>
class X {
public:
- static const T value = 10 / Divisor; // expected-error{{in-class initializer is not a constant expression}}
+ static const T value = 10 / Divisor; // expected-error{{in-class initializer for static data member is not a constant expression}}
};
int array1[X<int, 2>::value == 5? 1 : -1];
@@ -114,4 +114,3 @@ namespace PR6449 {
template class X1<char>;
}
-
OpenPOWER on IntegriCloud