Skip to content

Commit 1795fa5

Browse files
committed
[NFC] Update example in comment
1 parent 90d2f8c commit 1795fa5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7133,10 +7133,10 @@ Sema::BuildCompoundLiteralExpr(SourceLocation LParenLoc, TypeSourceInfo *TInfo,
71337133
//
71347134
// But: C99-C23 6.5.2.5 Compound literals constraint 1: The type name
71357135
// shall specify an object type or an array of unknown size, but not a
7136-
// variable length array type. This seems odd, as it allows int a[size] =
7137-
// {}; but forbids int a[size] = (int[size]){}; As this is what the
7138-
// standard says, this is what's implemented here for C (except for the
7139-
// extension that permits constant foldable size arrays)
7136+
// variable length array type. This seems odd, as it allows 'int a[size] =
7137+
// {}', but forbids 'int *a = (int[size]){}'. As this is what the standard
7138+
// says, this is what's implemented here for C (except for the extension
7139+
// that permits constant foldable size arrays)
71407140

71417141
auto diagID = LangOpts.CPlusPlus
71427142
? diag::err_variable_object_no_init

0 commit comments

Comments
 (0)