File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1763,7 +1763,7 @@ class Parser : public CodeCompletionHandler {
1763
1763
ExprResult ParseExpression (TypeCastState isTypeCast = NotTypeCast);
1764
1764
ExprResult ParseConstantExpressionInExprEvalContext (
1765
1765
TypeCastState isTypeCast = NotTypeCast);
1766
- ExprResult ParseConstantExpression (TypeCastState isTypeCast = NotTypeCast );
1766
+ ExprResult ParseConstantExpression ();
1767
1767
ExprResult ParseCaseExpression (SourceLocation CaseLoc);
1768
1768
ExprResult ParseConstraintExpression ();
1769
1769
ExprResult
Original file line number Diff line number Diff line change @@ -208,14 +208,14 @@ Parser::ParseConstantExpressionInExprEvalContext(TypeCastState isTypeCast) {
208
208
return Actions.ActOnConstantExpression (Res);
209
209
}
210
210
211
- ExprResult Parser::ParseConstantExpression (TypeCastState isTypeCast ) {
211
+ ExprResult Parser::ParseConstantExpression () {
212
212
// C++03 [basic.def.odr]p2:
213
213
// An expression is potentially evaluated unless it appears where an
214
214
// integral constant expression is required (see 5.19) [...].
215
215
// C++98 and C++11 have no such rule, but this is only a defect in C++98.
216
216
EnterExpressionEvaluationContext ConstantEvaluated (
217
217
Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
218
- return ParseConstantExpressionInExprEvalContext (isTypeCast );
218
+ return ParseConstantExpressionInExprEvalContext (NotTypeCast );
219
219
}
220
220
221
221
ExprResult Parser::ParseCaseExpression (SourceLocation CaseLoc) {
You can’t perform that action at this time.
0 commit comments