mailer decided to send html I guess... for some reason.. all of a
sudden... stupid computer. anyway... the original bounced., so here it
is again...
On 02/08/2016 12:05 PM, Andrew MacLeod wrote:
On 02/08/2016 11:21 AM, Jeff Law wrote:
On 02/03/2016 11:01 PM, Richard Henderson wrote:
In the process of writing this, I found a hack in __typeof added
just to
support _Atomic. Which suggests that one of these variants would be
more generally helpful than the hack.
Yea, seems that way.
fyi, it originated here:
https://gcc.gnu.org/ml/gcc-patches/2013-08/msg00420.html
snippet near the bottom:
From: "Joseph S. Myers" <joseph at codesourcery dot com>
> On Fri, 2 Aug 2013, Andrew MacLeod wrote:
> Ive included an additional 2 line patch which should change the
meaning of
> __typeof__ (again untested, the joys of imminently leaving for
2 weeks :-).
> Im not sure the normal practical uses of
> __typeof__ have much meaning for an atomic type, it seems far
more useful to
> have __typeof__ for an atomic qualified type to return the
non-atomic variant.
What typeof should do in general for qualified types is unclear
(especially in the case of rvalues, where the movement in ISO C
seems to
be to say that rvalues can't have qualified types at all) -
returning the
non-atomic type seems reasonable to me.
Andrew