diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-09-29 23:18:34 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-09-29 23:18:34 +0000 |
commit | 256336d9ab6dc277df8c49704e9900146cea7f69 (patch) | |
tree | a759775273ec4c903d8157bbe29d5ba1f5c070be /clang/test/SemaTemplate/instantiate-static-var.cpp | |
parent | 82d4a2b91f3fe7ae5937e361aba1df1b882c3de2 (diff) | |
download | bcm5719-llvm-256336d9ab6dc277df8c49704e9900146cea7f69.tar.gz bcm5719-llvm-256336d9ab6dc277df8c49704e9900146cea7f69.zip |
Mark the ExtWarn for in-class initialization of static const float members as a GNU extension. Don't extend the scope of this extension to all literal types in C++0x mode.
llvm-svn: 140820
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-static-var.cpp')
-rw-r--r-- | clang/test/SemaTemplate/instantiate-static-var.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/instantiate-static-var.cpp b/clang/test/SemaTemplate/instantiate-static-var.cpp index 723cbd388f6..d2b0459ccc5 100644 --- a/clang/test/SemaTemplate/instantiate-static-var.cpp +++ b/clang/test/SemaTemplate/instantiate-static-var.cpp @@ -11,7 +11,7 @@ X<int, 0> xi0; // expected-note{{in instantiation of template class 'X<int, 0>' template<typename T> class Y { - static const T value = 0; // expected-warning{{in-class initializer for static data member of type 'const float' not allowed, accepted as an extension}} + static const T value = 0; // expected-warning{{in-class initializer for static data member of type 'const float' is a GNU extension}} }; Y<float> fy; // expected-note{{in instantiation of template class 'Y<float>' requested here}} |