diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-31 23:23:25 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-31 23:23:25 +0000 |
| commit | e4caa48dbb744fb809db1f6f09de2ed9576efcea (patch) | |
| tree | 505582594879dcd41b23047a8bfffcff116dbd15 /clang/test/SemaCXX/cxx98-compat.cpp | |
| parent | 77807637ffb0fffd6f215187258b0e12c6b6a620 (diff) | |
| download | bcm5719-llvm-e4caa48dbb744fb809db1f6f09de2ed9576efcea.tar.gz bcm5719-llvm-e4caa48dbb744fb809db1f6f09de2ed9576efcea.zip | |
DR259: Demote the pedantic error for an explicit instantiation after an
explicit specialization to a warning for C++98 mode (this is a defect report
resolution, so per our informal policy it should apply in C++98), and turn
the warning on by default for C++11 and later. In all cases where it fires, the
right thing to do is to remove the pointless explicit instantiation.
llvm-svn: 280308
Diffstat (limited to 'clang/test/SemaCXX/cxx98-compat.cpp')
| -rw-r--r-- | clang/test/SemaCXX/cxx98-compat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/cxx98-compat.cpp b/clang/test/SemaCXX/cxx98-compat.cpp index 25a086d9bcd..4a9baf5100d 100644 --- a/clang/test/SemaCXX/cxx98-compat.cpp +++ b/clang/test/SemaCXX/cxx98-compat.cpp @@ -361,7 +361,7 @@ template<typename T> T var = T(10); // diagnosed the primary template. template<typename T> T* var<T*> = new T(); template<> int var<int> = 10; -template int var<int>; +template char var<char>; float fvar = var<float>; class A { @@ -391,7 +391,7 @@ template<typename T> T B::v = T(); template<typename T> T* B::v<T*> = new T(); template<> int B::v<int> = 10; -template int B::v<int>; +template char B::v<char>; float fsvar = B::v<float>; #ifdef CXX14COMPAT |

