File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -703,8 +703,6 @@ def ext_consteval_if : ExtWarn<
703
703
def warn_cxx20_compat_consteval_if : Warning<
704
704
"consteval if is incompatible with C++ standards before C++23">,
705
705
InGroup<CXXPre23Compat>, DefaultIgnore;
706
- def err_extraneous_trailing_comma : Error<
707
- "extraneous trailing comma">;
708
706
709
707
def ext_init_statement : ExtWarn<
710
708
"'%select{if|switch}0' initialization statements are a C++17 extension">,
Original file line number Diff line number Diff line change @@ -2238,8 +2238,7 @@ Parser::ParsePostfixExpressionSuffix(ExprResult LHS) {
2238
2238
RunSignatureHelp ();
2239
2239
LHS = ExprError ();
2240
2240
} else if (!HasError && HasTrailingComma) {
2241
- // FIXME: add a FIXIT to remove the trailing comma.
2242
- Diag (Tok, diag::err_extraneous_trailing_comma);
2241
+ Diag (Tok, diag::err_expected_expression);
2243
2242
} else if (LHS.isInvalid ()) {
2244
2243
for (auto &E : ArgExprs)
2245
2244
Actions.CorrectDelayedTyposInExpr (E);
Original file line number Diff line number Diff line change @@ -219,6 +219,6 @@ class :: : {} a; // expected-error {{expected identifier}} expected-error {{exp
219
219
namespace GH125225 {
220
220
void func (int );
221
221
void k () {
222
- func (1 , ); // expected-error {{extraneous trailing comma }}
222
+ func (1 , ); // expected-error {{expected expression }}
223
223
}
224
224
}
You can’t perform that action at this time.
0 commit comments