]> git.ipfire.org Git - thirdparty/gcc.git/commit
Doc: Document enum with underlying type extension [PR117689]
authorSandra Loosemore <sloosemore@baylibre.com>
Tue, 1 Apr 2025 19:34:14 +0000 (19:34 +0000)
committerSandra Loosemore <sloosemore@baylibre.com>
Tue, 1 Apr 2025 20:30:08 +0000 (20:30 +0000)
commit42b2fc3fc9c06c174ec4d2c0566f54b624bc70b5
tree770d4ca3deca1ac926773bc424a3537fb68d0a79
parent0210bedf481a9fd248ce29650b824bcd84c3723c
Doc: Document enum with underlying type extension [PR117689]

This is a C23/C++11 feature that is supported as an extension with
earlier -std= options too, but was never previously documented.  It
interacts with the already-documented forward enum definition extension,
so I have merged discussion of the two extensions into the same section.

gcc/ChangeLog
PR c/117689
* doc/extend.texi (Incomplete Enums): Rename to....
(Enum Extensions): This.  Document support for specifying the
underlying type of an enum as an extension in all earlier C
and C++ standards.  Document that a forward declaration with
underlying type is not an incomplete type, and which dialects
GCC supports that in.
gcc/doc/extend.texi