https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106
Martin Sebor changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106
--- Comment #6 from Martin Sebor ---
Author: msebor
Date: Thu Jan 31 02:33:58 2019
New Revision: 268411
URL: https://gcc.gnu.org/viewcvs?rev=268411=gcc=rev
Log:
PR other/89106 - cast-to-union documentation incorrect w.r.t. lvalueness
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106
Martin Sebor changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106
--- Comment #4 from Alexander Monakov ---
My concern is that the cast does not "create a compound literal": what it
creates is an object, more specifically, an unnamed temporary object in
automatic storage with unspecified lifetime [1]. A
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106
--- Comment #3 from Martin Sebor ---
Is your concern with mentioning it that it describes the implementation?
Let's see how that works in the full text:
A cast to union type looks similar to other casts, except that the type
specified is a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106
--- Comment #2 from Alexander Monakov ---
I don't think it's appropriate to say "creates a compound literal". My
preference would be:
Unlike a compound literal, a cast to a union yields an rvalue like standard
casts do.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|