Title
Converting consteval lambda to function pointer in non-immediate context
Status
drafting
Section
7.7 [expr.const]
Submitter
Hubert Tong

Created on 2022-11-11.00:00:00 last changed 2 weeks ago

Messages

Date: 2022-11-27.21:27:50

Suggested resolution:

Make the conversion function of a lambda whose call operator is an immediate function also an immediate function.

Date: 2022-11-11.00:00:00

Converting a consteval lambda to a function pointer in a non-immediate context should be immediately-escalating.

Currently, this is well-formed:

  auto x = &*[]() consteval { return 42; };
History
Date User Action Args
2023-11-16 21:27:26adminsetstatus: open -> drafting
2022-11-27 21:27:50adminsetmessages: + msg7068
2022-11-11 00:00:00admincreate