Movatterモバイル変換


[0]ホーム

URL:


Issue 1648 - WG21 CWG Issues
Title
thread_local vs block extern declarations
Status
c++14
Section
9.2.2 [dcl.stc]
Submitter
Richard Smith

Created on2013-04-12.00:00:00 last changed134 months ago

Messages

msg4683 (view)
Date: 2013-09-15.00:00:00

[Moved to DR at the September, 2013 meeting.]

msg4310 (view)
Date: 2013-04-15.00:00:00

Proposed resolution (April, 2013):

Whenthread_local is applied to a variable of block scopethestorage-class-specifierstatic is implied ifitdoes not appear explicitlyno otherstorage-class-specifier appears in thedecl-specifier-seq.
msg4309 (view)
Date: 2013-04-12.00:00:00

According to 9.2.2 [dcl.stc] paragraph 4,

Whenthread_local is applied to a variable of blockscope thestorage-class-specifierstatic isimplied if it does not appear explicitly.

This, presumably unintentionally, prohibits a declaration like

  void f() {    extern thread_local int n;  }
History
DateUserActionArgs
2014-11-24 00:00:00adminsetstatus: drwp -> c++14
2014-03-03 00:00:00adminsetstatus: dr -> drwp
2013-10-14 00:00:00adminsetmessages: +msg4683
2013-10-14 00:00:00adminsetstatus: ready -> dr
2013-05-03 00:00:00adminsetmessages: +msg4310
2013-04-12 00:00:00admincreate

[8]ページ先頭

©2009-2025 Movatter.jp