Title
thread_local vs linkage-specifications
Status
nad
Section
9.11 [dcl.link]
Submitter
Richard Smith

Created on 2014-02-14.00:00:00 last changed 127 months ago

Messages

Date: 2014-06-15.00:00:00

Rationale (June, 2014):

This restriction is the same for static and simply requires that the braced form of linkage-specification be used.

Date: 2022-11-20.07:54:16

According to 9.11 [dcl.link] paragraph 7,

A declaration directly contained in a linkage-specification is treated as if it contains the extern specifier (9.2.2 [dcl.stc]) for the purpose of determining the linkage of the declared name and whether it is a definition. Such a declaration shall not specify a storage class.

This prohibits a declaration like

  extern "C++" thread_local int n;

Should this be changed?

History
Date User Action Args
2014-07-07 00:00:00adminsetmessages: + msg5113
2014-07-07 00:00:00adminsetstatus: open -> nad
2014-02-14 00:00:00admincreate