CWG Issue 1327 (original) (raw)

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

2025-04-13


1327.virt-specifier in a defaulted definition

Section: 9.6.2 [dcl.fct.def.default]Status: CD3Submitter: Ryou EzoeDate: 2011-05-29

[Voted into the WP at the February, 2012 meeting; moved to DR at the October, 2012 meeting.]

The grammar for defaulted and deleted functions in 9.6.2 [dcl.fct.def.default] and 9.6.3 [dcl.fct.def.delete] does not provide for _virt-specifier_s. Is there a reason for this omission, or was it inadvertent?

Proposed resolution (August, 2011):

  1. Change 9.6.2 [dcl.fct.def.default] paragraph 1 as follows:

A function definition of the form:

attribute-specifier-seqopt decl-specifier-seqopt declarator virt-specifier-seqopt = default ;

is called an explicitly-defaulted definition...

  1. Change 9.6.3 [dcl.fct.def.delete] paragraph 1 as follows:

A function definition of the form:

attribute-specifier-seqopt decl-specifier-seqopt declarator virt-specifier-seqopt = delete ;

is called a deleted definition...