From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/gcc~13/incomplete-enums.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 devdocs/gcc~13/incomplete-enums.html (limited to 'devdocs/gcc~13/incomplete-enums.html') diff --git a/devdocs/gcc~13/incomplete-enums.html b/devdocs/gcc~13/incomplete-enums.html new file mode 100644 index 00000000..8f46ebe9 --- /dev/null +++ b/devdocs/gcc~13/incomplete-enums.html @@ -0,0 +1,6 @@ +

6.49 Incomplete enum Types ΒΆ

You can define an enum tag without specifying its possible values. This results in an incomplete type, much like what you get if you write struct foo without describing the elements. A later declaration that does specify the possible values completes the type.

You cannot allocate variables or storage using the type while it is incomplete. However, you can work with pointers to that type.

This extension may not be very useful, but it makes the handling of enum more consistent with the way struct and union are handled.

This extension is not supported by GNU C++.

+

+ © Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
+ https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Incomplete-Enums.html +

+
-- cgit v1.2.3