Title
Freestanding std::char_traits<char>::eof depends on non-freestanding EOF
Status
new
Section
[char.traits.specializations.char]
Submitter
Jiang An

Created on 2024-04-03.00:00:00 last changed 1 month ago

Messages

Date: 2024-04-03.00:00:00

Currently EOF is not yet freestanding, because it's only specified to be provided in <stdio.h> in C, or together with <cstdio> in C++.

However, std::char_traits<char>::eof (required to be freestanding since C++26 by P2338R4) is required to return the value of EOF. It's unclear what is expected to be done in a freestanding implementation.

Related to LLVM issue #85158.

History
Date User Action Args
2024-04-03 00:00:00admincreate