Skip to content

Commit 72855b0

Browse files
jensmaurertkoeppe
authored andcommitted
[dcl.init.aggr] An initializer list is brace-enclosed
Do not claim that a designated-initializer-list or an initializer-list is an initializer list.
1 parent 4a2546a commit 72855b0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/declarations.tex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4735,14 +4735,15 @@
47354735
of the aggregate are determined as follows:
47364736
\begin{itemize}
47374737
\item
4738-
If the initializer list is a \grammarterm{designated-initializer-list},
4738+
If the initializer list is
4739+
a brace-enclosed \grammarterm{designated-initializer-list},
47394740
the aggregate shall be of class type,
47404741
the \grammarterm{identifier} in each \grammarterm{designator}
47414742
shall name a direct non-static data member of the class, and
47424743
the explicitly initialized elements of the aggregate
47434744
are the elements that are, or contain, those members.
47444745
\item
4745-
If the initializer list is an \grammarterm{initializer-list},
4746+
If the initializer list is a brace-enclosed \grammarterm{initializer-list},
47464747
the explicitly initialized elements of the aggregate
47474748
are the first $n$ elements of the aggregate,
47484749
where $n$ is the number of elements in the initializer list.
@@ -4756,7 +4757,8 @@
47564757
\begin{itemize}
47574758
\item
47584759
If the element is an anonymous union member and
4759-
the initializer list is a \grammarterm{designated-initializer-list},
4760+
the initializer list is
4761+
a brace-enclosed \grammarterm{designated-initializer-list},
47604762
the element is initialized by the
47614763
\grammarterm{designated-initializer-list} \tcode{\{ }\placeholder{D}\tcode{ \}},
47624764
where \placeholder{D} is the \grammarterm{designated-initializer-clause}

0 commit comments

Comments
 (0)