[Bug web/69356] Wrong description of compound literals for scalar types
christian.brauner at mailbox dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 19 12:03:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69356
Christian Brauner <christian.brauner at mailbox dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |documentation
URL| |https://gcc.gnu.org/onlined
| |ocs/gcc/Compound-Literals.h
| |tml
--- Comment #1 from Christian Brauner <christian.brauner at mailbox dot org> ---
The rationale behind this can be found in section 6.5.2.5 [Compound literals]
of the C-standard (http://www.iso-9899.info/n1570.html) in Footnote 99:
"Footnote 99) Note that this differs from a cast expression. For example, a
cast specifies a conversion to scalar types or void only, and the result of a
cast expression is not an lvalue."
More information about the Gcc-bugs
mailing list