Title
Names reserved by C for standard library not reserved by C++
Status
new
Section
[reserved.names]
Submitter
Hubert Tong

Created on 2021-05-10.00:00:00 last changed 3 weeks ago

Messages

Date: 2021-05-15.00:00:00

[ 2021-05-20; Reflector poll ]

Priority set to 3.

Date: 2021-05-10.00:00:00

The C standard has a section called "Future library directions". This is subclause 7.31 in C17, which is the version that the C++ working draft references. C reserves the names described in that subclause for its standard library, allowing C library vendors to introduce some names from future standards as conforming, "orthogonal" extensions. ISO C++ does not appear to reserve these names in a clear way. In particular, [reserved.names] has wording about names and function signatures "from the C standard library declared with external linkage", but C's "Future library directions" describes names that "may be added to the declarations in [some] header[s]".

Extra clarity regarding whether these names are actually intended to be reserved by C++ would be appreciated.

History
Date User Action Args
2021-05-20 08:58:15adminsetmessages: + msg11830
2021-05-10 00:00:00admincreate