CWG Issue 1938 (original) (raw)
This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-11-05
1938. Should hosted/freestanding be implementation-defined?
Section: 4.1 [intro.compliance]Status: CD5Submitter: Richard SmithDate: 2014-06-09
[Accepted as a DR at the February, 2019 meeting.]
Whether an implementation is hosted or freestanding is only required to be documented by the value of the __STDC_HOSTED__ macro (15.12 [cpp.predefined]). Should this characteristic be classified as implementation-defined, thus requiring documentation?
Proposed resolution (January, 2019):
Change 16.4.2.5 [compliance] paragraph 1 as follows:
Two kinds of implementations are defined: _hosted_and freestanding (4.1 [intro.compliance]) the kind of the implementation is implementation-defined. For a hosted implementation, this document describes the set of available headers.