Skip to content

Commit 8a1586c

Browse files
[diff.basic] Use enum example instead of example outdated since C99
C99 subclause 6.2.7, "Compatible type and composite type", had this sentence: > If one is declared with a tag, the other shall be declared with the > same tag.
1 parent ef2abfa commit 8a1586c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/compatibility.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2916,11 +2916,10 @@
29162916

29172917
\diffref{basic.types}
29182918
\change
2919-
C allows ``compatible types'' in several places, \Cpp{} does not.\\
2919+
C allows mixing between ``compatible types'' in several places where \Cpp{} does not.\\
29202920
For example,
2921-
otherwise-identical \keyword{struct} types with different tag names
2922-
are ``compatible'' in C but are distinctly different types
2923-
in \Cpp{}.
2921+
enumerated types are ``compatible'' with their underlying types in C but, in \Cpp{},
2922+
enumerations are types distinct from their underlying types.
29242923
\rationale
29252924
Stricter type checking is essential for \Cpp{}.
29262925
\effect

0 commit comments

Comments
 (0)