diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-09-21 02:51:56 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-09-21 02:51:56 +0000 |
commit | 75e0b9b21c2dc16264e3b8055951a4a00fc29f01 (patch) | |
tree | 94632b03a381a037664354c764129ba5bf2ecb1c /test/SemaTemplate | |
parent | a82c23ee67984794b9899511c792dbc45dc5bd37 (diff) |
Revert "Give external linkage and mangling to lambdas inside inline variables and variable templates."
To fix: runtime error: load of value 15, which is not a valid value for type 'clang::LVComputationKind'
This reverts commit r313827.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate')
-rw-r--r-- | test/SemaTemplate/instantiate-static-var.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/instantiate-static-var.cpp b/test/SemaTemplate/instantiate-static-var.cpp index 547470db5c..648ee4153f 100644 --- a/test/SemaTemplate/instantiate-static-var.cpp +++ b/test/SemaTemplate/instantiate-static-var.cpp @@ -5,7 +5,7 @@ template<typename T, T Divisor> class X { public: - static const T value = 10 / Divisor; // expected-error{{in-class initializer for static data member is not a constant expression}} expected-warning {{division by zero}} + 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]; |