Disambiguate the storage class of some compound literals: change request for C23
Jens Gustedt, Martin Uecker · HAL (Le Centre pour la Communication Scientifique Directe) · 2021
We noticed that there is a need for clarification about the storage class of compound literals that are evaluated in the type expressions of function parameters. It turned out that clang has them as static storage duration while gcc has them as automatic. We asked WG14 to clarify this situation and consensus (13-0-8) has been reached that it should be specified asautomatic. This paper implements that change.