N1824: automatic storage duration objects can never use ATOMIC_VAR_INIT



Submitter: Blaine Garst
Submission Date: 2014年04月08日

Summary

The 7.17.2.1 paragraph 2 second sentence states, in part

An atomic object with automatic storage duration that is not initialized using ATOMIC_VAR_INIT is initially in an indeterminate state ...

Objects of automatic storage duration are allocated using one of the malloc family of functions. There is no syntax for initializing such objects and so the phrase "that is not initialized using ATOMIC_VAR_INIT" is inappropriate.

Suggested Technical Corrigendum

In 7.17.2.1 paragraph 2 second sentence remove the phrase:
... that is not initialized using ATOMIC_VAR_INIT ...

AltStyle によって変換されたページ (->オリジナル) /