This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118c. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-10-25


3091. Linking of translation units as sequences of tokens

Section: 6.7  [basic.link]     Status: review     Submitter: US     Date: 2025-10-01

N5028 comment US 15-032

Clarify that translated translation units are linked to form a program.

Possible resolution (reviewed by CWG 2025-10-24):

  1. Change in 5.2 [lex.phases] paragraph 8 as follows:

    8. Translated translation units are combined, and all external entity references are resolved (6.7 [basic.link]). Library components are linked to satisfy external references to entities not defined in the current translation. All such translator output is collected into a program image which contains information needed for execution in its execution environment.
  2. Change in 6.7 [basic.link] paragraph 1 as follows:

    A program consists of one or more translation units (5.1 [lex.separate]) that are translated and linked together. A translation unit consists of a sequence of declarations. ...