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 <stdatomic.h>, remove _Atomic and const qualifiers from atomic types. (Possibly all qualifiers should be removed; const can be an issue for more macros using typeof than just the <stdatomic.h> ones.) */ (If changing this, remember to change the __auto_type handling as well.) -- Joseph S. Myers jos...@codesourcery.com