File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1834,6 +1834,9 @@ bool ByteCodeExprGen<Emitter>::VisitCompoundAssignOperator(
1834
1834
std::optional<PrimType> RT = classify (RHS->getType ());
1835
1835
std::optional<PrimType> ResultT = classify (E->getType ());
1836
1836
1837
+ if (!Ctx.getLangOpts ().CPlusPlus14 )
1838
+ return this ->visit (RHS) && this ->visit (LHS) && this ->emitError (E);
1839
+
1837
1840
if (!LT || !RT || !ResultT || !LHSComputationT)
1838
1841
return false ;
1839
1842
Original file line number Diff line number Diff line change 1
1
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
2
+ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 -fexperimental-new-constant-interpreter
2
3
3
4
namespace value_range_detail {
4
5
template <typename T>
Original file line number Diff line number Diff line change 1
1
// RUN: %clang_cc1 %s -verify -fsyntax-only -std=gnu++98 -triple x86_64-pc-linux-gnu
2
2
// RUN: %clang_cc1 %s -verify -fsyntax-only -std=gnu++2a -triple x86_64-pc-linux-gnu
3
3
4
+ // RUN: %clang_cc1 %s -verify -fsyntax-only -std=gnu++98 -triple x86_64-pc-linux-gnu -fexperimental-new-constant-interpreter
5
+ // RUN: %clang_cc1 %s -verify -fsyntax-only -std=gnu++2a -triple x86_64-pc-linux-gnu -fexperimental-new-constant-interpreter
6
+
7
+
4
8
typedef unsigned long long uint64_t ;
5
9
typedef unsigned int uint32_t ;
6
10
You can’t perform that action at this time.
0 commit comments