This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 119d. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2026-03-27


3155. Escalation of virtual functions

Section: 11.7.3  [class.virtual]     Status: ready     Submitter: Cody Miller     Date: 2026-02-06

Subclause 11.7.3 [class.virtual] paragraph 18 disallows mixing consteval and non-consteval virtual function overrides. This does not cover immediate functions via escalation.

Proposed resolution (approved by CWG 2026-02-20):

Change in 11.7.3 [class.virtual] paragraph 18 as follows:

A class with a consteval an immediate virtual function that overrides a non-immediate virtual function that is not consteval shall have consteval-only type (6.9.1 [basic.types.general]). A consteval An immediate virtual function shall not be overridden by a non-immediate virtual function that is not consteval.