Disambiguate the storage class of some compound literals - INRIA - Institut National de Recherche en Informatique et en Automatique Accéder directement au contenu
Rapport (Rapport De Recherche) Année : 2021

Disambiguate the storage class of some compound literals

Résumé

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
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

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

Identifiants

  • HAL Id : hal-03363683 , version 1

Citer

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 Consultations
47 Téléchargements

Partager

Gmail Facebook X LinkedIn More