File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments