Skip to content

Commit 07b21e3

Browse files
committed
Fix the comment
1 parent 3ac80d0 commit 07b21e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Parse/ParseExprCXX.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ bool Parser::ParseOptionalCXXScopeSpecifier(
260260
// declares a pack of parameters without specifying a declarator-id
261261
// becomes ill-formed.
262262
//
263-
// However, we still avoid parsing them as pack expansions because this is a
264-
// rare use case of packs, despite being partway non-conforming, to ensure
265-
// semantic consistency given that we have backported this feature.
263+
// However, we still treat it as a pack indexing type because the use case
264+
// is fairly rare, to ensure semantic consistency given that we have
265+
// backported this feature to pre-C++26 modes.
266266
if (!Tok.is(tok::coloncolon) && !getLangOpts().CPlusPlus26 &&
267267
getCurScope()->isFunctionDeclarationScope())
268268
Diag(Start, diag::warn_pre_cxx26_ambiguous_pack_indexing_type) << Type;

0 commit comments

Comments
 (0)