Disambiguate the storage class of some compound literals - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Reports (Research Report) Year : 2021

Disambiguate the storage class of some compound literals

Abstract

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 as automatic. This paper implements that change.
Fichier principal
Vignette du fichier
n2819.pdf (181.45 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-03363683 , version 1 (04-10-2021)

Identifiers

  • HAL Id : hal-03363683 , version 1

Cite

Jens Gustedt, Martin Uecker. Disambiguate the storage class of some compound literals: change request for C23. [Research Report] 2819, ISO JCT1/SC22/WG14. 2021, pp.2. ⟨hal-03363683⟩
35 View
47 Download

Share

Gmail Facebook X LinkedIn More