On Wed, 25 Jun 2014, Sebastian Huber wrote:
> In case __auto_type discards const and volatile qualifiers, then shouldn't
> this generate a warning (-Wconst-qual)
>
> __auto_type __atomic_load_ptr = (PTR);
>
> ?
No. The discarding is for qualifiers on the type itself (remembering that
qualifie
On 2014-06-25 15:25, Joseph S. Myers wrote:
On Wed, 25 Jun 2014, Sebastian Huber wrote:
I think the inheritance of the volatile qualifier via __typeof__
(*__atomic_load_ptr) is an implementation flaw.
See the comment in c_parser_typeof_specifier:
/* For use in macros such as those in
On Wed, 25 Jun 2014, Sebastian Huber wrote:
> I think the inheritance of the volatile qualifier via __typeof__
> (*__atomic_load_ptr) is an implementation flaw.
See the comment in c_parser_typeof_specifier:
/* For use in macros such as those in , remove
_Atomic and const qualifier