This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Destructor support for C++11 thread_local variables
> On 10/11/2012 03:17 PM, Roland McGrath wrote:
> >> One must construct all of the tls variables from a translation unit at
> >> the same time.
> >
> > Is that a semantic requirement? Is there a special technical reason for
> > it, or just "principle of least astonishment" for people who write
> > constructors with side effects?
>
> Semantic requirement of c++11.
Is there any order requirement? And is there a specific rationale for it
other than the aforementioned "principle of least astonishment"?