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

2024-12-19


1023. thread_local objects as non-type template arguments

Section: 13.4.3  [temp.arg.nontype]     Status: dup     Submitter: Jeffrey Yasskin     Date: 2010-01-28

Currently, 13.4.3 [temp.arg.nontype] paragraph 1 only requires that an object whose address is used as a non-type template argument have external linkage, thus allowing objects of thread storage duration to be used. The requirement should presumably be for an object to have static storage duration as well as external linkage.

Rationale (August, 2010):

This is a duplicate of issue 1154.