Commit 9d04a3af by Martin Sebor Committed by Martin Sebor

extend.texi (Compound Literals): Add '@' missed in last commit.

gcc/ChangeLog:
	* doc/extend.texi (Compound Literals): Add '@' missed in last commit.

From-SVN: r238652
parent e040f9bd
2016-07-22 Martin Sebor <msebor@redhat.com> 2016-07-22 Martin Sebor <msebor@redhat.com>
* doc/extend.texi (Compound Literals): Add '@' missed in last commit.
2016-07-22 Martin Sebor <msebor@redhat.com>
PR c/71560 PR c/71560
* doc/extend.texi (Compound Literals): Correct and clarify. * doc/extend.texi (Compound Literals): Correct and clarify.
(Cast to Union): Same. (Cast to Union): Same.
......
...@@ -1956,7 +1956,7 @@ because the lifetime of the array ends after the declaration of @code{foo}. ...@@ -1956,7 +1956,7 @@ because the lifetime of the array ends after the declaration of @code{foo}.
As an optimization, G++ sometimes gives array compound literals longer As an optimization, G++ sometimes gives array compound literals longer
lifetimes: when the array either appears outside a function or has lifetimes: when the array either appears outside a function or has
a @code{const}-qualified type. If @code{foo} and its initializer had a @code{const}-qualified type. If @code{foo} and its initializer had
elements of type @code{char *const} rather than code{char *}, or if elements of type @code{char *const} rather than @code{char *}, or if
@code{foo} were a global variable, the array would have static storage @code{foo} were a global variable, the array would have static storage
duration. But it is probably safest just to avoid the use of array duration. But it is probably safest just to avoid the use of array
compound literals in C++ code. compound literals in C++ code.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment