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

2024-04-18


2441. Inline function parameters

Section: 9.2.8  [dcl.inline]     Status: C++20     Submitter: Kristian Stasiowski     Date: 2019-11-04

[Accepted as a DR at the November, 2019 meeting.]

According to 9.2.8 [dcl.inline] paragraph 5,

The inline specifier shall not appear on a block scope declaration.

Function parameters, however, are not block scope declarations, but they should also not be declared inline.

Proposed resolution (November, 2019):

Change 9.2.8 [dcl.inline] paragraph 5 as follows:

The inline specifier shall not appear on a block scope declaration.87 or on the declaration of a function parameter.