2240. Probable misuse of term "function scope" in [thread.condition]

Section: 33.5.3 [thread.condition.condvar], 33.5.4 [thread.condition.condvarany] Status: Resolved Submitter: FrankHB1989 Opened: 2013-02-03 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [thread.condition.condvar].

View all issues with Resolved status.

Discussion:

All usages of "function scope" in 33.5.3 [thread.condition.condvar] and 33.5.4 [thread.condition.condvarany], such as 33.5.3 [thread.condition.condvar] p10 b4:

If the function exits via an exception, lock.lock() shall be called prior to exiting the function scope.

seem to be inappropriate compared to the actual core language definition of 6.3.5 [basic.funscope]:

Labels (6.1) have function scope and may be used anywhere in the function in which they are declared. Only labels have function scope.

Probably the intended meaning is "outermost block scope of the function".

[2013-09 Chicago: Resolved by proposed resolution of LWG 2135]

Proposed resolution:

Resolved by proposed resolution of LWG 2135.