Skip to content

Commit

Permalink
Fix a c23 -> c2x think-o
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronBallman authored and tru committed Oct 27, 2023
1 parent 2a41d97 commit 030d68e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Parse/ParseDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3997,7 +3997,7 @@ void Parser::ParseDeclarationSpecifiers(
break;
case tok::kw_thread_local:
if (getLangOpts().C2x)
Diag(Tok, diag::warn_c23_compat_keyword) << Tok.getName();
Diag(Tok, diag::warn_c2x_compat_keyword) << Tok.getName();
// We map thread_local to _Thread_local in C23 mode so it retains the C
// semantics rather than getting the C++ semantics.
// FIXME: diagnostics will show _Thread_local when the user wrote
Expand Down

0 comments on commit 030d68e

Please sign in to comment.