diff options
Diffstat (limited to 'gcc/doc/extend.texi')
-rw-r--r-- | gcc/doc/extend.texi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index f7f52f1..ded154f 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -8308,7 +8308,7 @@ multiple @code{#pragma pack(@var{n})} instances and finalized by a single @end enumerate @node Unnamed Fields -@section Unnamed struct/union fields within structs/unions. +@section Unnamed struct/union fields within structs/unions @cindex struct @cindex union @@ -8348,6 +8348,15 @@ It is ambiguous which @code{a} is being referred to with @samp{foo.a}. Such constructs are not supported and must be avoided. In the future, such constructs may be detected and treated as compilation errors. +@opindex fms-extensions +Unless @option{-fms-extensions} is used, the unnamed field must be a +structure or union definition without a tag (for example, @samp{struct +@{ int a; @};}). If @option{-fms-extensions} is used, the field may +also be a definition with a tag such as @samp{struct foo @{ int a; +@};}, a reference to a previously defined structure or union such as +@samp{struct foo;}, or a reference to a @code{typedef} name for a +previously defined structure or union type. + @node Thread-Local @section Thread-Local Storage @cindex Thread-Local Storage |