Created on 2017-10-23.00:00:00 last changed 25 months ago
Rationale (November, 2018):
See also issue 1962, which asks that the type of __func__ be const char*. These two goals are incompatible, so EWG input is requested.
EWG 2022-11-11
This is tracked in github issue cplusplus/papers#1378.
Notes from the October, 2018 teleconference:
CWG agreed with the proposed change.
The definition of __func__ in 9.5.1 [dcl.fct.def.general] paragraph 8 is:
static const char __func__[] = "function-name";
This prohibits its use in constant expressions, e.g.,
int main () { // error: the value of __func__ is not usable in a constant expression constexpr char c = __func__[0]; }
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-11-25 06:58:02 | admin | set | status: extension -> open |
2020-12-15 00:00:00 | admin | set | messages: + msg6321 |
2020-12-15 00:00:00 | admin | set | messages: + msg6320 |
2020-12-15 00:00:00 | admin | set | status: open -> extension |
2017-10-23 00:00:00 | admin | create |