comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: pragma Thread_Local_Storage on record?
Date: Tue, 01 Mar 2016 15:44:11 +0100
Date: 2016-03-01T15:44:11+01:00	[thread overview]
Message-ID: <87k2lmmf5w.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: c4f4f07c-679b-4bda-a4f5-8ee689742b3e@googlegroups.com

>    type Core is record
>       Wait_Queue : Any_Buffer;
>       Core_No    : UInt32;
>       Current    : WorkerId ;
>       Parent     : WorkerId ;
>       Msgs       : UInt64;
>    end record;

> I get the following errors:
>
> cores.adb:27:04: Thread_Local_Storage variable "Curr_Core" is improperly initialized
> cores.adb:27:04: only allowed initialization is explicit "null" or static expression
>
> What am I doing wrong here?
> If the code snippets I provided is not sufficient for to see the
> real problem, please give me a hint and I will provide more code.

I suspect that one of the components of type Core is itself a record
and has a component which is not statically initialized.

  reply	other threads:[~2016-03-01 14:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-01 13:45 pragma Thread_Local_Storage on record? hanslad
2016-03-01 14:44 ` Florian Weimer [this message]
2016-03-01 15:22   ` hanslad
2016-03-01 15:55     ` Dmitry A. Kazakov
2016-03-01 16:31       ` hanslad
2016-03-01 17:03         ` Dmitry A. Kazakov
2016-03-01 15:52 ` J-P. Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox