Title
std::filesystem operations should be observable behaviour
Status
core
Section
[intro.abstract]
Submitter
Jens Maurer

Created on 2022-02-03.00:00:00 last changed 6 days ago

Messages

Date: 2026-07-10.16:33:17

Proposed resolution:

This wording is relative to N5050.

  1. Modify [intro.abstract]p8 as indicated:

    -8- The following specify the observable behavior of the program:

    1. (8.1) — Accesses through volatile glvalues are evaluated strictly according to the rules of the abstract machine.

    2. (8.2) — Data is delivered to the host environment to be written into files (See also: ISO/IEC 9899:2024, 7.23.3).

      [Note 4: Delivering such data is followed by an observable checkpoint ([cstdio.syn]). Not all host environments provide access to file contents before program termination. — end note]

    3. (8.?) — Files in external storage are modified ([fs.op.funcs.general]).

    4. (8.3) —The input and output dynamics of interactive devices shall take place in such a fashion that prompting output is actually delivered before a program waits for input. What constitutes an interactive device is implementation-defined.

Date: 2026-07-15.00:00:00

[ 2026-07-10; LWG telecon. Change status New → Core. ]

Date: 2026-06-15.00:00:00

[ 2026-06-30; Tim adds wording ]

Date: 2026-06-15.13:21:36

[ Brno 2026-06-12; LWG discussion ]

Cross reference is now p8.2. Add a bullet with the words from [fs.op.funcs.general].

Date: 2022-03-15.00:00:00

[ 2022-03-04; Reflector poll ]

Set priority to 3 after reflector poll.

Date: 2022-02-07.11:25:31

[intro.abstract] p6.2 should be amended to say that filesystem operations such as mkdir are observable behaviour. Any resolution would need CWG review.

History
Date User Action Args
2026-07-10 16:33:17adminsetmessages: + msg16511
2026-07-10 16:33:17adminsetstatus: new -> core
2026-07-01 07:22:18adminsetmessages: + msg16496
2026-07-01 07:22:18adminsetmessages: + msg16495
2026-06-15 13:21:36adminsetmessages: + msg16457
2022-03-04 14:33:52adminsetmessages: + msg12395
2022-02-03 00:00:00admincreate